[pypy-svn] r16073 - pypy/dist/pypy/objspace/std
tismer at codespeak.net
tismer at codespeak.net
Mon Aug 15 02:41:32 CEST 2005
Author: tismer
Date: Mon Aug 15 02:41:31 2005
New Revision: 16073
Modified:
pypy/dist/pypy/objspace/std/strutil.py
Log:
small correction: forgot strip_spaces()
Modified: pypy/dist/pypy/objspace/std/strutil.py
==============================================================================
--- pypy/dist/pypy/objspace/std/strutil.py (original)
+++ pypy/dist/pypy/objspace/std/strutil.py Mon Aug 15 02:41:31 2005
@@ -10,7 +10,7 @@
# This module is independent from PyPy.
def strip_spaces(s):
- # XXX this is not locate-dependent
+ # XXX this is not locale-dependent
p = 0
q = len(s)
while p < q and s[p] in ' \f\n\r\t\v':
@@ -377,6 +377,8 @@
Expects an unwrapped string and return an unwrapped float.
"""
+ s = strip_spaces(s)
+
if not s:
raise OperationError(space.w_ValueError, space.wrap(
"empty string for float()"))
More information about the Pypy-commit
mailing list