[pypy-svn] r68183 - pypy/trunk/pypy/module/pypyjit

fijal at codespeak.net fijal at codespeak.net
Mon Oct 5 18:09:54 CEST 2009


Author: fijal
Date: Mon Oct  5 18:09:53 2009
New Revision: 68183

Modified:
   pypy/trunk/pypy/module/pypyjit/policy.py
Log:
See math module


Modified: pypy/trunk/pypy/module/pypyjit/policy.py
==============================================================================
--- pypy/trunk/pypy/module/pypyjit/policy.py	(original)
+++ pypy/trunk/pypy/module/pypyjit/policy.py	Mon Oct  5 18:09:53 2009
@@ -41,10 +41,10 @@
                 if mod.endswith('operation') or mod.endswith('abstractinst'):
                     return True
 
-            if (not mod.startswith('pypy.module.pypyjit.') and
-                not mod.startswith('pypy.module.signal.') and
-                not mod.startswith('pypy.module.micronumpy.')):
-                return False
+            modname = mod.split('.')[2]
+            if mod in ['pypyjit', 'signal', 'micronumpy', 'math']:
+                return True
+            return False
             
         if mod.startswith('pypy.translator.'):
             return False



More information about the Pypy-commit mailing list