From: Zac Medico Date: Thu, 6 Aug 2009 01:05:43 +0000 (-0000) Subject: Fix transposition of CodecInfo streamreader and streamwriter attributes X-Git-Tag: v2.2_rc37~41 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b6eddf7f5a4cb032d217f7ef0b6da028d3f230bc;p=portage.git Fix transposition of CodecInfo streamreader and streamwriter attributes inside _gen_missing_encodings(). This solves 'TypeError: an integer is required' exceptions from codecs.open().readlines([sizehint]), triggered when python is built with USE=build (stage 1). Thanks to Daniel Robbins for reporting. svn path=/main/trunk/; revision=13925 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 7b5d56048..a152293d8 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -8007,8 +8007,8 @@ def _gen_missing_encodings(missing_encodings): decode=utf8decode, incrementalencoder=Utf8IncrementalEncoder, incrementaldecoder=Utf8IncrementalDecoder, - streamreader=Utf8StreamWriter, - streamwriter=Utf8StreamReader, + streamreader=Utf8StreamReader, + streamwriter=Utf8StreamWriter, ) for alias in ('utf_8', 'u8', 'utf', 'utf8', 'utf8_ucs2', 'utf8_ucs4'):