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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to