[pypy-svn] r71993 - pypy/trunk/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Tue Mar 9 19:41:05 CET 2010
Author: arigo
Date: Tue Mar 9 19:40:58 2010
New Revision: 71993
Modified:
pypy/trunk/pypy/objspace/std/formatting.py
Log:
Fix. There is a test in lib-python/modified-2.5.2/test/test_format.py
Modified: pypy/trunk/pypy/objspace/std/formatting.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/formatting.py (original)
+++ pypy/trunk/pypy/objspace/std/formatting.py Tue Mar 9 19:40:58 2010
@@ -322,7 +322,7 @@
else:
s = c
msg = "unsupported format character '%s' (0x%x) at index %d" % (
- s, ord(c), self.fmtpos)
+ s, ord(c), self.fmtpos - 1)
raise OperationError(space.w_ValueError, space.wrap(msg))
def std_wp(self, r):
More information about the Pypy-commit
mailing list