[pypy-commit] pypy default: fix translation
bdkearns
noreply at buildbot.pypy.org
Fri Apr 12 07:22:38 CEST 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r63263:7a2e0a6b013b
Date: 2013-04-11 23:17 -0400
http://bitbucket.org/pypy/pypy/changeset/7a2e0a6b013b/
Log: fix translation
diff --git a/pypy/module/_io/interp_bytesio.py b/pypy/module/_io/interp_bytesio.py
--- a/pypy/module/_io/interp_bytesio.py
+++ b/pypy/module/_io/interp_bytesio.py
@@ -12,7 +12,7 @@
class W_BytesIO(RStringIO, W_BufferedIOBase):
def __init__(self, space):
W_BufferedIOBase.__init__(self, space)
- RStringIO.__init__(self)
+ self.init()
def descr_init(self, space, w_initial_bytes=None):
if not space.is_none(w_initial_bytes):
diff --git a/pypy/module/cStringIO/interp_stringio.py b/pypy/module/cStringIO/interp_stringio.py
--- a/pypy/module/cStringIO/interp_stringio.py
+++ b/pypy/module/cStringIO/interp_stringio.py
@@ -146,7 +146,7 @@
class W_OutputType(RStringIO, W_InputOutputType):
def __init__(self, space):
- RStringIO.__init__(self)
+ self.init()
self.space = space
def descr_truncate(self, w_size=None):
diff --git a/rpython/rlib/rStringIO.py b/rpython/rlib/rStringIO.py
--- a/rpython/rlib/rStringIO.py
+++ b/rpython/rlib/rStringIO.py
@@ -11,6 +11,9 @@
_mixin_ = True # for interp_stringio.py
def __init__(self):
+ self.init()
+
+ def init(self):
# The real content is the join of the following data:
# * the list of characters self.__bigbuffer;
# * each of the strings in self.__strings.
More information about the pypy-commit
mailing list