summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-11-22 17:07:43 (GMT)
committerBrett Cannon <brett@python.org>2013-11-22 17:07:43 (GMT)
commit175e7257b13a6459d971b186fb81cfa426868a97 (patch)
treed459c6f3f763b6704e32b69c4d8b02c274bee096 /Lib/importlib
parent330ce596c25abf4497f721c9382e36b2b79e8bfe (diff)
downloadcpython-175e7257b13a6459d971b186fb81cfa426868a97.zip
cpython-175e7257b13a6459d971b186fb81cfa426868a97.tar.gz
cpython-175e7257b13a6459d971b186fb81cfa426868a97.tar.bz2
Remove a commented-out line
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 858d181..01fe4ff 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -826,8 +826,6 @@ class ModuleSpec:
def spec_from_loader(name, loader, *, origin=None, is_package=None):
"""Return a module spec based on various loader methods."""
-
-# if hasattr(loader, 'get_data'):
if hasattr(loader, 'get_filename'):
if is_package is None:
return spec_from_file_location(name, loader=loader)