diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-05-27 07:49:58 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-05-27 07:49:58 (GMT) |
commit | 5c6eba3a93ce5fe989e372a8b12f535c72fc4e8f (patch) | |
tree | 249764430b5978db6fb68cbd80a380b225831312 /Lib/importlib | |
parent | 38e0e1ec85ed5a5f3c991a1a3837910655e8ecd3 (diff) | |
download | cpython-5c6eba3a93ce5fe989e372a8b12f535c72fc4e8f.zip cpython-5c6eba3a93ce5fe989e372a8b12f535c72fc4e8f.tar.gz cpython-5c6eba3a93ce5fe989e372a8b12f535c72fc4e8f.tar.bz2 |
Tweak importlib._bootstrap to avoid zero-argument super so I can work on issue #14857 without breaking imports
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index deaded9..6656db3 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -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): |