diff -r 10f20ad2fbb6 Lib/logging/config.py --- a/Lib/logging/config.py Mon Aug 08 21:45:13 2011 +0200 +++ b/Lib/logging/config.py Tue Aug 09 21:20:14 2011 +0400 @@ -373,13 +373,19 @@ 'cfg' : 'cfg_convert', } - # We might want to use a different one, e.g. importlib - importer = __import__ def __init__(self, config): self.config = ConvertingDict(config) self.config.configurator = self + def importer(self, name, *args, **kwargs): + """ + Imports the module name, potentially using the given globals and + locals to determine how to interpret the name in a package context. + """ + # We might want to use a different one, e.g. importlib + return __import__(name, *args, **kwargs) + def resolve(self, s): """ Resolve strings to objects using standard import and attribute