[pypy-svn] r24279 - pypy/dist/pypy/translator/c

tismer at codespeak.net tismer at codespeak.net
Mon Mar 13 04:06:00 CET 2006


Author: tismer
Date: Mon Mar 13 04:05:49 2006
New Revision: 24279

Modified:
   pypy/dist/pypy/translator/c/pyobj.py
Log:
hoppla! I forgot to remove old code

Modified: pypy/dist/pypy/translator/c/pyobj.py
==============================================================================
--- pypy/dist/pypy/translator/c/pyobj.py	(original)
+++ pypy/dist/pypy/translator/c/pyobj.py	Mon Mar 13 04:05:49 2006
@@ -99,17 +99,6 @@
         return name
 
     def nameof_module(self, value):
-        assert value is os or not hasattr(value, "__file__") or \
-               not (value.__file__.endswith('.pyc') or
-                    value.__file__.endswith('.py') or
-                    value.__file__.endswith('.pyo')), \
-               "%r is not a builtin module (probably :)"%value
-        name = self.uniquename('mod%s'%value.__name__)
-        self.initcode_python(name, "__import__(%r)" % (value.__name__,))
-        return name
-
-    # try to build valid imports for external stuff        
-    def nameof_module(self, value):
         easy = value is os or not hasattr(value, "__file__") or \
                not (value.__file__.endswith('.pyc') or
                     value.__file__.endswith('.py') or



More information about the Pypy-commit mailing list