[pypy-svn] r79968 - pypy/branch/fast-forward/pypy/objspace/std
afa at codespeak.net
afa at codespeak.net
Sat Dec 11 11:38:51 CET 2010
Author: afa
Date: Sat Dec 11 11:38:48 2010
New Revision: 79968
Modified:
pypy/branch/fast-forward/pypy/objspace/std/newformat.py
Log:
Fix translation, maybe
Modified: pypy/branch/fast-forward/pypy/objspace/std/newformat.py
==============================================================================
--- pypy/branch/fast-forward/pypy/objspace/std/newformat.py (original)
+++ pypy/branch/fast-forward/pypy/objspace/std/newformat.py Sat Dec 11 11:38:48 2010
@@ -358,7 +358,7 @@
presentation_type = spec[i]
if self.is_unicode:
try:
- the_type = spec[i].encode("ascii")
+ the_type = spec[i].encode("ascii")[0]
except UnicodeEncodeError:
raise OperationError(space.w_ValueError,
space.wrap("invalid presentation type"))
More information about the Pypy-commit
mailing list