[pypy-commit] pypy default: Don't do a lookup based on 'self' here.

arigo noreply at buildbot.pypy.org
Mon Aug 1 16:18:43 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r46151:2cd06a7a2bdb
Date: 2011-08-01 15:42 +0200
http://bitbucket.org/pypy/pypy/changeset/2cd06a7a2bdb/

Log:	Don't do a lookup based on 'self' here. Seems to be needed for
	tests.

diff --git a/pypy/module/_multibytecodec/app_multibytecodec.py b/pypy/module/_multibytecodec/app_multibytecodec.py
--- a/pypy/module/_multibytecodec/app_multibytecodec.py
+++ b/pypy/module/_multibytecodec/app_multibytecodec.py
@@ -19,7 +19,7 @@
             else:
                 data = read(size)
             final = not data
-            output = self.decode(data, final)
+            output = MultibyteIncrementalDecoder.decode(self, data, final)
             if output or final:
                 return output
             size = 1   # read 1 more byte and retry
@@ -41,7 +41,7 @@
         return self
 
     def write(self, data):
-        self.stream.write(self.encode(data))
+        self.stream.write(MultibyteIncrementalEncoder.encode(self, data))
 
     def writelines(self, lines):
         for data in lines:


More information about the pypy-commit mailing list