[pypy-svn] r58818 - pypy/branch/2.5-merge/pypy/lib

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Oct 8 15:14:32 CEST 2008


Author: cfbolz
Date: Wed Oct  8 15:14:30 2008
New Revision: 58818

Modified:
   pypy/branch/2.5-merge/pypy/lib/_exceptions.py
Log:
(iko, cfbolz): fix error message


Modified: pypy/branch/2.5-merge/pypy/lib/_exceptions.py
==============================================================================
--- pypy/branch/2.5-merge/pypy/lib/_exceptions.py	(original)
+++ pypy/branch/2.5-merge/pypy/lib/_exceptions.py	Wed Oct  8 15:14:30 2008
@@ -264,11 +264,11 @@
             if args[1][1] is None or type(args[1][1]) == int:
                 self.lineno = args[1][1]
             else:
-                raise TypeError('argument 2 must be str, not %s'%type(args[1][1]))
+                raise TypeError('argument 2 must be int, not %s'%type(args[1][1]))
             if args[1][2] is None or type(args[1][2]) == int:
                 self.offset = args[1][2]
             else:
-                raise TypeError('argument 3 must be str, not %s'%type(args[1][2]))
+                raise TypeError('argument 3 must be int, not %s'%type(args[1][2]))
             if args[1][3] is None or type(args[1][3]) == str:
                 self.text = args[1][3]
             else:



More information about the Pypy-commit mailing list