Author: Manuel Jacob
Branch: refactor-str-types
Changeset: r64614:0c3ec61773b7
Date: 2013-05-25 02:10 +0200
http://bitbucket.org/pypy/pypy/changeset/0c3ec61773b7/
Log: fixes
diff --git a/pypy/objspace/std/stringmethods.py
b/pypy/objspace/std/stringmethods.py
--- a/pypy/objspace/std/stringmethods.py
+++ b/pypy/objspace/std/stringmethods.py
@@ -1,3 +1,6 @@
+from pypy.interpreter.error import OperationError
+
+
class StringMethods(object):
_mixin_ = True
@@ -45,7 +48,7 @@
times = space.getindex_w(w_times, space.w_OverflowError)
except OperationError, e:
if e.match(space, space.w_TypeError):
- return NotImplemented
+ return space.w_NotImplemented
raise
if times <= 0:
return self.EMPTY
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit