Author: Maciej Fijalkowski <[email protected]>
Branch: rdict-experiments-2
Changeset: r59817:33f815dfb12b
Date: 2013-01-06 22:22 +0200
http://bitbucket.org/pypy/pypy/changeset/33f815dfb12b/
Log: fix?
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
@@ -1,5 +1,5 @@
from pypy.interpreter.error import OperationError
-from pypy.interpreter.baseobjspace import Wrappable
+from pypy.interpreter.baseobjspace import Wrappable, W_Root
from pypy.interpreter.typedef import TypeDef, GetSetProperty
from pypy.interpreter.gateway import interp2app, unwrap_spec
from pypy.rlib.rStringIO import RStringIO
@@ -165,6 +165,7 @@
self.seek(i)
return ''.join(bigbuffer[p:i])
+ @unwrap_spec(w_size=W_Root)
def descr_truncate(self, w_size=None):
self.check_closed()
space = self.space
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit