Tweak importlib._bootstrap to avoid zero-argument super so I can work on issue #14857 without breaking imports
This commit is contained in:
parent
38e0e1ec85
commit
5c6eba3a93
|
@ -771,7 +771,9 @@ class FileLoader:
|
|||
@_check_name
|
||||
def load_module(self, fullname):
|
||||
"""Load a module from a file."""
|
||||
return super().load_module(fullname)
|
||||
# Issue #14857: Avoid the zero-argument form so the implementation
|
||||
# of that form can be updated without breaking the frozen module
|
||||
return super(FileLoader, self).load_module(fullname)
|
||||
|
||||
@_check_name
|
||||
def get_filename(self, fullname):
|
||||
|
|
3740
Python/importlib.h
3740
Python/importlib.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue