[Python-checkins] r81930 - python/branches/py3k/Lib/logging/config.py
brett.cannon
python-checkins at python.org
Sat Jun 12 02:39:29 CEST 2010
Author: brett.cannon
Date: Sat Jun 12 02:39:28 2010
New Revision: 81930
Log:
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.
Modified:
python/branches/py3k/Lib/logging/config.py
Modified: python/branches/py3k/Lib/logging/config.py
==============================================================================
--- python/branches/py3k/Lib/logging/config.py (original)
+++ python/branches/py3k/Lib/logging/config.py Sat Jun 12 02:39:28 2010
@@ -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)
More information about the Python-checkins
mailing list