[pypy-svn] r66401 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler
benjamin at codespeak.net
benjamin at codespeak.net
Sat Jul 18 23:40:55 CEST 2009
Author: benjamin
Date: Sat Jul 18 23:40:54 2009
New Revision: 66401
Modified:
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
Log:
use '%d' which is supported by rpython
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py Sat Jul 18 23:40:54 2009
@@ -126,7 +126,7 @@
raise NotImplementedError
def current_temporary_name(self):
- name = "_[%i]" % (self.temporary_name_counter,)
+ name = "_[%d]" % (self.temporary_name_counter,)
self.temporary_name_counter += 1
assert self.scope.lookup(name) != symtable.SCOPE_UNKNOWN
return name
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py Sat Jul 18 23:40:54 2009
@@ -50,7 +50,7 @@
return self.roles.get(self.mangle(name), SYM_BLANK)
def new_temporary_name(self):
- self.note_symbol("_[%i]" % (self.temp_name_counter,), SYM_ASSIGNED)
+ self.note_symbol("_[%d]" % (self.temp_name_counter,), SYM_ASSIGNED)
self.temp_name_counter += 1
def note_symbol(self, identifier, role):
More information about the Pypy-commit
mailing list