Commit d122b2ba authored by Brett Cannon's avatar Brett Cannon

Remove a commented-out line

parent de814b51
......@@ -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)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment