[pypy-svn] r51898 - pypy/dist/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Wed Feb 27 11:14:15 CET 2008


Author: arigo
Date: Wed Feb 27 11:14:14 2008
New Revision: 51898

Modified:
   pypy/dist/pypy/annotation/binaryop.py
Log:
Fix error message.


Modified: pypy/dist/pypy/annotation/binaryop.py
==============================================================================
--- pypy/dist/pypy/annotation/binaryop.py	(original)
+++ pypy/dist/pypy/annotation/binaryop.py	Wed Feb 27 11:14:14 2008
@@ -625,10 +625,10 @@
 
 def check_negative_slice(s_slice):
     if isinstance(s_slice.start, SomeInteger) and not s_slice.start.nonneg:
-        raise TypeError("%s not proven to have negative start" % s_slice)
+        raise TypeError("%s not proven to have non-negative start" % s_slice)
     if isinstance(s_slice.stop, SomeInteger) and not s_slice.stop.nonneg and\
            getattr(s_slice.stop, 'const', 0) != -1:
-        raise TypeError("%s not proven to have negative stop" % s_slice)
+        raise TypeError("%s not proven to have non-negative stop" % s_slice)
 
 class __extend__(pairtype(SomeList, SomeSlice)):
 



More information about the Pypy-commit mailing list