mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
Remove a commented-out line
This commit is contained in:
parent
330ce596c2
commit
175e7257b1
2 changed files with 125 additions and 127 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue