summaryrefslogtreecommitdiffstats
path: root/Lib/runpy.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-07-08 18:00:00 (GMT)
committerBrett Cannon <brett@python.org>2016-07-08 18:00:00 (GMT)
commitfdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6 (patch)
treef9a0574f99b8d6541266b0c61230a9052ee6d8ad /Lib/runpy.py
parent15552c39e09426988d9ad0901a2aafc624e46e33 (diff)
downloadcpython-fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6.zip
cpython-fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6.tar.gz
cpython-fdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6.tar.bz2
Issue #26896: Disambiguate uses of "importer" with "finder".
Thanks to Oren Milman for the patch.
Diffstat (limited to 'Lib/runpy.py')
-rw-r--r--Lib/runpy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/runpy.py b/Lib/runpy.py
index af6205d..6b6fc24 100644
--- a/Lib/runpy.py
+++ b/Lib/runpy.py
@@ -98,7 +98,7 @@ def _run_module_code(code, init_globals=None,
# may be cleared when the temporary module goes away
return mod_globals.copy()
-# Helper to get the loader, code and filename for a module
+# Helper to get the full name, spec and code for a module
def _get_module_details(mod_name, error=ImportError):
if mod_name.startswith("."):
raise error("Relative module names not supported")
@@ -253,7 +253,7 @@ def run_path(path_name, init_globals=None, run_name=None):
return _run_module_code(code, init_globals, run_name,
pkg_name=pkg_name, script_name=fname)
else:
- # Importer is defined for path, so add it to
+ # Finder is defined for path, so add it to
# the start of sys.path
sys.path.insert(0, path_name)
try: