summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-05-27 07:49:58 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-05-27 07:49:58 (GMT)
commit5c6eba3a93ce5fe989e372a8b12f535c72fc4e8f (patch)
tree249764430b5978db6fb68cbd80a380b225831312 /Lib
parent38e0e1ec85ed5a5f3c991a1a3837910655e8ecd3 (diff)
downloadcpython-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')
-rw-r--r--Lib/importlib/_bootstrap.py4
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):