diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-03-15 18:08:37 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-03-15 18:08:37 +0000 |
commit | f99b8162a2e6969cf9b46013c7ef383359142e62 (patch) | |
tree | aa40269e3b0469a1294dbeed8ed1f26ec4963f41 /Lib/runpy.py | |
parent | 13ed60b5045aafff22918cf4262bcc2dd3afea90 (diff) | |
download | cpython-git-f99b8162a2e6969cf9b46013c7ef383359142e62.tar.gz |
Whitespace normalization.
Diffstat (limited to 'Lib/runpy.py')
-rwxr-xr-x | Lib/runpy.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/runpy.py b/Lib/runpy.py index c540aad6ba..afb0098292 100755 --- a/Lib/runpy.py +++ b/Lib/runpy.py @@ -239,7 +239,7 @@ except AttributeError: importer = _FileSystemImporter(path_item) except ImportError: pass - return importer + return importer def _get_path_loader(mod_name, path=None): @@ -283,7 +283,7 @@ except AttributeError: If the module or package is accessible via the normal import mechanism, a wrapper around the relevant part of that machinery is returned. - + Non PEP 302 mechanisms (e.g. the Windows registry) used by the standard import machinery to find files in alternative locations are partially supported, but are searched AFTER sys.path. Normally, @@ -328,7 +328,7 @@ except AttributeError: else: # Top level module, so stick with default path sub_name = mod_name - + for importer in sys.meta_path: loader = importer.find_module(mod_name, path) if loader is not None: @@ -406,7 +406,7 @@ def _run_module_code(code, init_globals=None, def run_module(mod_name, init_globals=None, run_name=None, alter_sys=False): """Execute a module's code without importing it - + Returns the resulting top level namespace dictionary """ loader = _get_loader(mod_name) @@ -418,7 +418,7 @@ def run_module(mod_name, init_globals=None, filename = _get_filename(loader, mod_name) if run_name is None: run_name = mod_name - return _run_module_code(code, init_globals, run_name, + return _run_module_code(code, init_globals, run_name, filename, loader, alter_sys) |