Author: Benjamin Peterson <[email protected]>
Branch:
Changeset: r44408:499577676244
Date: 2011-05-24 14:48 -0500
http://bitbucket.org/pypy/pypy/changeset/499577676244/
Log: make error message more inclusive
diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -225,7 +225,7 @@
else:
raise OperationError(space.w_TypeError,
space.wrap('__nonzero__ should return '
- 'bool or int'))
+ 'bool or integer'))
def nonzero(self, w_obj):
if self.is_true(w_obj):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit