mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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
2 changed files with 1874 additions and 1870 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue