diff options
author | Brett Cannon <bcannon@gmail.com> | 2010-06-12 00:39:28 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2010-06-12 00:39:28 (GMT) |
commit | c236850ad1dcb69ec24ed429b6ae38afa3b80d06 (patch) | |
tree | b9de96c88d8584decbdfdbe7ecab462023359d7b /Lib/logging | |
parent | 5976d975f8f16ebc7f5d218dfdcaf28411a4c0d2 (diff) | |
download | cpython-c236850ad1dcb69ec24ed429b6ae38afa3b80d06.zip cpython-c236850ad1dcb69ec24ed429b6ae38afa3b80d06.tar.gz cpython-c236850ad1dcb69ec24ed429b6ae38afa3b80d06.tar.bz2 |
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.
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index f5971c2..1e5ff68 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -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) |