From b6eddf7f5a4cb032d217f7ef0b6da028d3f230bc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 6 Aug 2009 01:05:43 +0000 Subject: [PATCH] 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 --- pym/portage/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'): -- 2.26.2