mirror of
https://github.com/python/cpython.git
synced 2025-10-13 18:33:34 +00:00
Whitespace normalization.
This commit is contained in:
parent
88869f9787
commit
07e99cb774
18 changed files with 1933 additions and 1936 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue