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.
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 @@
}
# We might want to use a different one, e.g. importlib
- importer = __import__
+ importer = staticmethod(__import__)
def __init__(self, config):
self.config = ConvertingDict(config)