[pypy-svn] r4821 - pypy/trunk/src/pypy/objspace/std
alex at codespeak.net
alex at codespeak.net
Wed Jun 2 14:31:00 CEST 2004
Author: alex
Date: Wed Jun 2 14:30:59 2004
New Revision: 4821
Modified:
pypy/trunk/src/pypy/objspace/std/stringobject.py
Log:
fix bug triggered when more than one %(name)s formatting items were present
Modified: pypy/trunk/src/pypy/objspace/std/stringobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/stringobject.py (original)
+++ pypy/trunk/src/pypy/objspace/std/stringobject.py Wed Jun 2 14:30:59 2004
@@ -963,7 +963,7 @@
j = format.find(')', i+1)
if j == -1:
raise ValueError, "incomplete format string"
- if index != -1:
+ if index >= 0:
raise TypeError, "format string mismatch"
name = format[i+1:j]
value = values[name]
More information about the Pypy-commit
mailing list