[pypy-svn] r14081 - pypy/dist/pypy/lib
gintas at codespeak.net
gintas at codespeak.net
Sat Jul 2 13:28:25 CEST 2005
Author: gintas
Date: Sat Jul 2 13:28:25 2005
New Revision: 14081
Modified:
pypy/dist/pypy/lib/_formatting.py
Log:
Removed an except: block in lib/_formatting.py that could hide interpreter
errors.
Modified: pypy/dist/pypy/lib/_formatting.py
==============================================================================
--- pypy/dist/pypy/lib/_formatting.py (original)
+++ pypy/dist/pypy/lib/_formatting.py Sat Jul 2 13:28:25 2005
@@ -467,12 +467,7 @@
# Switch to using the unicode formatters and retry.
do_unicode = True
format_registry = unicode_format_registry
- try:
- f = format_registry[t[0]]
- except KeyError:
- raise ValueError("unsupported format character "
- "'%s' (0x%x) at index %d"
- %(t[0], ord(t[0]), fmtiter.i-1))
+ f = format_registry[t[0]]
r.append(f(char, flags, width, prec, value).format())
else:
More information about the Pypy-commit
mailing list