Commit c236850a authored by Brett Cannon's avatar Brett Cannon

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.
parent 5976d975
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment