[Python-checkins] r53632 - sandbox/trunk/import_in_py/importlib.py sandbox/trunk/import_in_py/test_controlled_importlib.py

brett.cannon python-checkins at python.org
Sun Feb 4 02:04:07 CET 2007


Author: brett.cannon
Date: Sun Feb  4 02:04:05 2007
New Revision: 53632

Modified:
   sandbox/trunk/import_in_py/importlib.py
   sandbox/trunk/import_in_py/test_controlled_importlib.py
Log:
Touch up some docstrings and comments.


Modified: sandbox/trunk/import_in_py/importlib.py
==============================================================================
--- sandbox/trunk/import_in_py/importlib.py	(original)
+++ sandbox/trunk/import_in_py/importlib.py	Sun Feb  4 02:04:05 2007
@@ -270,6 +270,8 @@
         If the module's name is dotted then only search for the trailing
         module's name on the path entry.  An importer is already created
         for each directory in the __path__ attribute for a package.
+
+        'path' is ignored as that is meant for meta_path entries only.
         
         """
         tail_module = fullname.rsplit('.', 1)[-1]
@@ -462,10 +464,10 @@
         package location of 'package'.
         
         The loader needs to implement several methods in order to this handler
-        to be able to load needed data.  A key point with some of these methods
-        is the idea of opaque code objects which are not directly touched by
-        the handler but are passed back to the loader so as to allow for a way
-        to keep state:
+        to be able to load the needed data.  A key point with some of these
+        methods is the idea of opaque code objects which are not directly
+        touched by the handler but are passed back to the loader so as to allow
+        for a way to keep state:
         
         * split_path(path)
             Take in an opaque path object and split it into a base path and a

Modified: sandbox/trunk/import_in_py/test_controlled_importlib.py
==============================================================================
--- sandbox/trunk/import_in_py/test_controlled_importlib.py	(original)
+++ sandbox/trunk/import_in_py/test_controlled_importlib.py	Sun Feb  4 02:04:05 2007
@@ -206,9 +206,11 @@
                 self.failUnlessRaises(ImportError, import_, blacklisted, level=0)
 
     def test_extension_whitelisting(self):
+        # XXX
         pass
 
     def test_pyc_blocking(self):
+        # XXX
         pass
 
     def test_py(self):


More information about the Python-checkins mailing list