[pypy-svn] r66207 - pypy/branch/pyjitpl5/pypy/rlib

arigo at codespeak.net arigo at codespeak.net
Tue Jul 14 14:54:06 CEST 2009


Author: arigo
Date: Tue Jul 14 14:54:05 2009
New Revision: 66207

Modified:
   pypy/branch/pyjitpl5/pypy/rlib/jit.py
Log:
Don't clash on the name 'self' if used in the kwds arguments too.


Modified: pypy/branch/pyjitpl5/pypy/rlib/jit.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/rlib/jit.py	(original)
+++ pypy/branch/pyjitpl5/pypy/rlib/jit.py	Tue Jul 14 14:54:05 2009
@@ -112,13 +112,13 @@
     def _freeze_(self):
         return True
 
-    def jit_merge_point(self, **livevars):
+    def jit_merge_point(_self, **livevars):
         # special-cased by ExtRegistryEntry
-        assert dict.fromkeys(livevars) == self._alllivevars
+        assert dict.fromkeys(livevars) == _self._alllivevars
 
-    def can_enter_jit(self, **livevars):
+    def can_enter_jit(_self, **livevars):
         # special-cased by ExtRegistryEntry
-        assert dict.fromkeys(livevars) == self._alllivevars
+        assert dict.fromkeys(livevars) == _self._alllivevars
 
     def _set_param(self, name, value):
         # special-cased by ExtRegistryEntry



More information about the Pypy-commit mailing list