New submission from Александр <alexandr.s....@gmail.com>: At line 377 __import__ function assing to class variable importer.
__import__ get module name as first argument, but when we use self.importer at line 391 (http://hg.python.org/cpython/file/10f20ad2fbb6/Lib/logging/config.py#l391) we give class instance(self) as the first argument. Not module name As result raised ImportError with message: "__import__() argument 1 must be string, not DictConfigurator" or "__import__() argument 1 must be string, not BaseConfigurator" ---------- components: Library (Lib) files: config_importer_patch.diff keywords: patch messages: 141834 nosy: Alexandr priority: normal severity: normal status: open title: Logical mistake of importer method in logging.config.BaseConfigurator versions: Python 2.7 Added file: http://bugs.python.org/file22867/config_importer_patch.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12718> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com