[pypy-svn] r78430 - pypy/branch/fast-forward/pypy/module/pyexpat

afa at codespeak.net afa at codespeak.net
Fri Oct 29 01:01:08 CEST 2010


Author: afa
Date: Fri Oct 29 01:01:06 2010
New Revision: 78430

Modified:
   pypy/branch/fast-forward/pypy/module/pyexpat/interp_pyexpat.py
Log:
Format pyexpat error messages like CPython


Modified: pypy/branch/fast-forward/pypy/module/pyexpat/interp_pyexpat.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/pyexpat/interp_pyexpat.py	(original)
+++ pypy/branch/fast-forward/pypy/module/pyexpat/interp_pyexpat.py	Fri Oct 29 01:01:06 2010
@@ -505,7 +505,7 @@
         err = rffi.charp2strn(XML_ErrorString(code), 200)
         lineno = XML_GetCurrentLineNumber(self.itself)
         colno = XML_GetCurrentColumnNumber(self.itself)
-        msg = "%s: line: %d, column: %d" % (err, lineno, colno)
+        msg = "%s: line %d, column %d" % (err, lineno, colno)
         w_module = space.getbuiltinmodule('pyexpat')
         w_errorcls = space.getattr(w_module, space.wrap('error'))
         w_error = space.call_function(



More information about the Pypy-commit mailing list