[New-bugs-announce] [issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

Александр report at bugs.python.org
Tue Aug 9 19:25:41 CEST 2011


New submission from Александр <alexandr.s.rus at 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 <report at bugs.python.org>
<http://bugs.python.org/issue12718>
_______________________________________


More information about the New-bugs-announce mailing list