[pypy-commit] pypy ppc-jit-backend: Fix signature of __exit__ in scratch_reg.

edelsohn noreply at buildbot.pypy.org
Tue Feb 14 21:34:16 CET 2012


Author: edelsohn
Branch: ppc-jit-backend
Changeset: r52474:418c8c63f1ef
Date: 2012-02-14 15:33 -0500
http://bitbucket.org/pypy/pypy/changeset/418c8c63f1ef/

Log:	Fix signature of __exit__ in scratch_reg.

diff --git a/pypy/jit/backend/ppc/codebuilder.py b/pypy/jit/backend/ppc/codebuilder.py
--- a/pypy/jit/backend/ppc/codebuilder.py
+++ b/pypy/jit/backend/ppc/codebuilder.py
@@ -1181,7 +1181,7 @@
     def __enter__(self):
         self.mc.alloc_scratch_reg()
 
-    def __exit__(self):
+    def __exit__(self, *args):
         self.mc.free_scratch_reg()
 
 class BranchUpdater(PPCAssembler):


More information about the pypy-commit mailing list