[Python-checkins] r57089 - sandbox/trunk/import_in_py/_importlib.py

brett.cannon python-checkins at python.org
Thu Aug 16 10:32:00 CEST 2007


Author: brett.cannon
Date: Thu Aug 16 10:31:59 2007
New Revision: 57089

Modified:
   sandbox/trunk/import_in_py/_importlib.py
Log:
Remove an old comment and add a new one.


Modified: sandbox/trunk/import_in_py/_importlib.py
==============================================================================
--- sandbox/trunk/import_in_py/_importlib.py	(original)
+++ sandbox/trunk/import_in_py/_importlib.py	Thu Aug 16 10:31:59 2007
@@ -269,9 +269,6 @@
 
     def find_module(self, fullname, path=None):
         tail_module = fullname.rsplit('.', 1)[-1]
-        # XXX Do we need to check for packages first with all possible file
-        #     extensions and then check for files (e.g., check for __init__.py
-        #     and __init__.pyc first, and then look for a submodule.
         if self._possible_package:
             for ext in self._suffixes:
                 package_directory = _path_join(self._path_entry, tail_module)
@@ -286,6 +283,7 @@
             file_path = _path_join(self._path_entry, file_name)
             if (_path_isfile(file_path) and
                     _case_ok(self._path_entry, file_name)):
+                # XXX Pass in importer as well to access attributes?
                 return self._loader(file_path)
         else:
             # Raise a warning if it matches a directory w/o an __init__ file.


More information about the Python-checkins mailing list