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:
Brett Cannon 2010-06-12 00:39:28 +00:00
parent 5976d975f8
commit c236850ad1
1 changed files with 1 additions and 1 deletions

View File

@ -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)