Commit 5c6eba3a authored by Nick Coghlan's avatar Nick Coghlan

Tweak importlib._bootstrap to avoid zero-argument super so I can work on issue...

Tweak importlib._bootstrap to avoid zero-argument super so I can work on issue #14857 without breaking imports
parent 38e0e1ec
......@@ -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):
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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