[pypy-commit] pypy default: make error message more inclusive

gutworth noreply at buildbot.pypy.org
Tue May 24 21:38:36 CEST 2011


Author: Benjamin Peterson <benjamin at python.org>
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):


More information about the pypy-commit mailing list