mirror of https://github.com/python/cpython
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
|
@ -373,7 +373,7 @@ class BaseConfigurator(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
# We might want to use a different one, e.g. importlib
|
# We might want to use a different one, e.g. importlib
|
||||||
importer = __import__
|
importer = staticmethod(__import__)
|
||||||
|
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
self.config = ConvertingDict(config)
|
self.config = ConvertingDict(config)
|
||||||
|
|
Loading…
Reference in New Issue