[pypy-svn] r79180 - pypy/branch/fast-forward/pypy/module/_io
afa at codespeak.net
afa at codespeak.net
Wed Nov 17 11:52:58 CET 2010
Author: afa
Date: Wed Nov 17 11:52:56 2010
New Revision: 79180
Modified:
pypy/branch/fast-forward/pypy/module/_io/interp_stringio.py
Log:
Be sure to call the base __init__
Modified: pypy/branch/fast-forward/pypy/module/_io/interp_stringio.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_io/interp_stringio.py (original)
+++ pypy/branch/fast-forward/pypy/module/_io/interp_stringio.py Wed Nov 17 11:52:56 2010
@@ -5,7 +5,8 @@
from pypy.interpreter.baseobjspace import ObjSpace, W_Root
class W_StringIO(W_TextIOBase):
- def __init__(self):
+ def __init__(self, space):
+ W_TextIOBase.__init__(self, space)
self.buf = []
self.pos = 0
@@ -17,7 +18,7 @@
@unwrap_spec(ObjSpace, W_Root)
def descr_new(space, w_subtype):
self = space.allocate_instance(W_StringIO, w_subtype)
- W_StringIO.__init__(self)
+ W_StringIO.__init__(self, space)
return space.wrap(self)
def resize_buffer(self, newlength):
More information about the Pypy-commit
mailing list