Remove a commented-out line

This commit is contained in:
Brett Cannon 2013-11-22 12:07:43 -05:00
parent 330ce596c2
commit 175e7257b1
2 changed files with 125 additions and 127 deletions

View file

@ -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)