[pypy-svn] r59450 - pypy/trunk/pypy/interpreter/pyparser
arigo at codespeak.net
arigo at codespeak.net
Mon Oct 27 17:17:31 CET 2008
Author: arigo
Date: Mon Oct 27 17:17:30 2008
New Revision: 59450
Modified:
pypy/trunk/pypy/interpreter/pyparser/astbuilder.py
Log:
Minor sanitizing.
Modified: pypy/trunk/pypy/interpreter/pyparser/astbuilder.py
==============================================================================
--- pypy/trunk/pypy/interpreter/pyparser/astbuilder.py (original)
+++ pypy/trunk/pypy/interpreter/pyparser/astbuilder.py Mon Oct 27 17:17:30 2008
@@ -1168,16 +1168,16 @@
elif value.startswith("0"):
base = 8
if value.endswith('l') or value.endswith('L'):
- l = space.builtin.get('long')
+ l = space.w_long
return space.call_function(l, space.wrap(value), space.wrap(base))
if value.endswith('j') or value.endswith('J'):
- c = space.builtin.get('complex')
+ c = space.w_complex
return space.call_function(c, space.wrap(value))
try:
- i = space.builtin.get('int')
+ i = space.w_int
return space.call_function(i, space.wrap(value), space.wrap(base))
except:
- f = space.builtin.get('float')
+ f = space.w_float
return space.call_function(f, space.wrap(value))
def is_basestring_const(self, expr):
More information about the Pypy-commit
mailing list