[Python-checkins] r52289 - sandbox/trunk/import_in_py/importer.py

brett.cannon python-checkins at python.org
Thu Oct 12 00:43:13 CEST 2006


Author: brett.cannon
Date: Thu Oct 12 00:43:12 2006
New Revision: 52289

Modified:
   sandbox/trunk/import_in_py/importer.py
Log:
Add assignment to __loader__.


Modified: sandbox/trunk/import_in_py/importer.py
==============================================================================
--- sandbox/trunk/import_in_py/importer.py	(original)
+++ sandbox/trunk/import_in_py/importer.py	Thu Oct 12 00:43:12 2006
@@ -192,6 +192,7 @@
             module = imp.new_module(fullname)
             sys.modules[fullname] = module
             self.handler.handle_file(module, fullname, path, self.file_path)
+            module.__loader__ = self
             return module
 
 


More information about the Python-checkins mailing list