[pypy-svn] r73836 - pypy/trunk/pypy/interpreter
benjamin at codespeak.net
benjamin at codespeak.net
Sat Apr 17 20:50:14 CEST 2010
Author: benjamin
Date: Sat Apr 17 20:50:13 2010
New Revision: 73836
Modified:
pypy/trunk/pypy/interpreter/function.py
Log:
factor out common code
Modified: pypy/trunk/pypy/interpreter/function.py
==============================================================================
--- pypy/trunk/pypy/interpreter/function.py (original)
+++ pypy/trunk/pypy/interpreter/function.py Sat Apr 17 20:50:13 2010
@@ -237,9 +237,9 @@
if isinstance(self.code, BuiltinCode):
# we have been seen by other means so rtyping should not choke
# on us
- assert self.code.identitifer not in Function._all, ("duplicate "
- "function ids")
- Function._all[self.code.identifier] = self
+ identifier = self.code.identifier
+ assert identifier not in Function._all, ("duplicate function ids")
+ Function._all[identifier] = self
return False
def find(identifier):
More information about the Pypy-commit
mailing list