[pypy-svn] r66193 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Tue Jul 14 00:07:09 CEST 2009


Author: benjamin
Date: Tue Jul 14 00:07:09 2009
New Revision: 66193

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py
Log:
this should be lstrip()

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py	Tue Jul 14 00:07:09 2009
@@ -1034,7 +1034,7 @@
                 base = 16
             elif len(raw) > 1:
                 base = 8
-            raw = raw.rstrip("0xX")
+            raw = raw.lstrip("0xX")
             if not raw:
                 raw = "0"
         w_num_str = self.space.wrap(raw)



More information about the Pypy-commit mailing list