[pypy-svn] r57456 - pypy/branch/2.5-features/pypy/interpreter/astcompiler

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Aug 19 10:52:03 CEST 2008


Author: cfbolz
Date: Tue Aug 19 10:52:00 2008
New Revision: 57456

Modified:
   pypy/branch/2.5-features/pypy/interpreter/astcompiler/pyassem.py
Log:
simplify this silly function


Modified: pypy/branch/2.5-features/pypy/interpreter/astcompiler/pyassem.py
==============================================================================
--- pypy/branch/2.5-features/pypy/interpreter/astcompiler/pyassem.py	(original)
+++ pypy/branch/2.5-features/pypy/interpreter/astcompiler/pyassem.py	Tue Aug 19 10:52:00 2008
@@ -51,8 +51,7 @@
             self.argcount = self.argcount - 1
 
     def checkFlag(self, flag):
-        if self.flags & flag:
-            return 1
+        return self.flags & flag
 
     def setFreeVars(self, names):
         self.freevars = list(names)



More information about the Pypy-commit mailing list