mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Calling __import__ as a method technically works, but really should be wrapped
in a staticmethod. This is important for when __import__ is set to a function defined in Python instead of C.
This commit is contained in:
parent
5976d975f8
commit
c236850ad1
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ class BaseConfigurator(object):
|
|||
}
|
||||
|
||||
# We might want to use a different one, e.g. importlib
|
||||
importer = __import__
|
||||
importer = staticmethod(__import__)
|
||||
|
||||
def __init__(self, config):
|
||||
self.config = ConvertingDict(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue