From c236850ad1dcb69ec24ed429b6ae38afa3b80d06 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 12 Jun 2010 00:39:28 +0000 Subject: [PATCH] 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. --- Lib/logging/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/logging/config.py b/Lib/logging/config.py index f5971c2bcfb..1e5ff6875eb 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)