diff options
Diffstat (limited to 'Lib/imputil.py')
-rw-r--r-- | Lib/imputil.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/imputil.py b/Lib/imputil.py index 0dd7b51..ca359e95 100644 --- a/Lib/imputil.py +++ b/Lib/imputil.py @@ -5,7 +5,7 @@ ### docco needed here and in Docs/ ... # note: avoid importing non-builtin modules -import imp ### not available in JPython? +import imp ### not available in JPython? import sys import strop import __builtin__ @@ -15,7 +15,7 @@ import struct import marshal _StringType = type('') -_ModuleType = type(sys) ### doesn't work in JPython... +_ModuleType = type(sys) ### doesn't work in JPython... class ImportManager: "Manage the import process." @@ -663,7 +663,7 @@ def _test_revamp(): # # # Guido's comments on sys.path caching: -# +# # We could cache this in a dictionary: the ImportManager can have a # cache dict mapping pathnames to importer objects, and a separate # method for coming up with an importer given a pathname that's not yet @@ -679,16 +679,16 @@ def _test_revamp(): # My/Guido's comments on factoring ImportManager and Importer: # # > However, we still have a tension occurring here: -# > +# > # > 1) implementing policy in ImportManager assists in single-point policy # > changes for app/rexec situations # > 2) implementing policy in Importer assists in package-private policy # > changes for normal, operating conditions -# > +# > # > I'll see if I can sort out a way to do this. Maybe the Importer class will # > implement the methods (which can be overridden to change policy) by # > delegating to ImportManager. -# +# # Maybe also think about what kind of policies an Importer would be # likely to want to change. I have a feeling that a lot of the code # there is actually not so much policy but a *necessity* to get things |