Tweak importlib._bootstrap to avoid zero-argument super so I can work on issue #14857 without breaking imports

This commit is contained in:
Nick Coghlan 2012-05-27 17:49:58 +10:00
parent 38e0e1ec85
commit 5c6eba3a93
2 changed files with 1874 additions and 1870 deletions

View File

@ -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):

File diff suppressed because it is too large Load Diff