Author: Brian Kearns <bdkea...@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. _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit