[pypy-svn] r55742 - pypy/dist/pypy/lib

fijal at codespeak.net fijal at codespeak.net
Tue Jun 10 21:27:35 CEST 2008


Author: fijal
Date: Tue Jun 10 21:27:35 2008
New Revision: 55742

Modified:
   pypy/dist/pypy/lib/imp.py
Log:
Raise ImportError on load_dynamic, helps some apps


Modified: pypy/dist/pypy/lib/imp.py
==============================================================================
--- pypy/dist/pypy/lib/imp.py	(original)
+++ pypy/dist/pypy/lib/imp.py	Tue Jun 10 21:27:35 2008
@@ -78,6 +78,9 @@
        return  load_compiled(name, filename, file)
     raise ValueError, 'invalid description argument: %r' % (description,)
 
+def load_dynamic(name, *args, **kwds):
+    raise ImportError(name)
+
 def load_source(name, pathname, file=None):
     autoopen = file is None
     if autoopen:



More information about the Pypy-commit mailing list