Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13925 - main/trunk/pym/portage
Date: Thu, 06 Aug 2009 01:05:45
Message-Id: E1MYrQN-0000lx-Oo@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-08-06 01:05:43 +0000 (Thu, 06 Aug 2009)
3 New Revision: 13925
4
5 Modified:
6 main/trunk/pym/portage/__init__.py
7 Log:
8 Fix transposition of CodecInfo streamreader and streamwriter attributes
9 inside _gen_missing_encodings(). This solves 'TypeError: an integer is
10 required' exceptions from codecs.open().readlines([sizehint]), triggered
11 when python is built with USE=build (stage 1). Thanks to Daniel Robbins
12 for reporting.
13
14
15 Modified: main/trunk/pym/portage/__init__.py
16 ===================================================================
17 --- main/trunk/pym/portage/__init__.py 2009-08-05 18:46:46 UTC (rev 13924)
18 +++ main/trunk/pym/portage/__init__.py 2009-08-06 01:05:43 UTC (rev 13925)
19 @@ -8007,8 +8007,8 @@
20 decode=utf8decode,
21 incrementalencoder=Utf8IncrementalEncoder,
22 incrementaldecoder=Utf8IncrementalDecoder,
23 - streamreader=Utf8StreamWriter,
24 - streamwriter=Utf8StreamReader,
25 + streamreader=Utf8StreamReader,
26 + streamwriter=Utf8StreamWriter,
27 )
28
29 for alias in ('utf_8', 'u8', 'utf', 'utf8', 'utf8_ucs2', 'utf8_ucs4'):