summaryrefslogtreecommitdiffstats
path: root/anaconda_log.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-02-23 11:49:25 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-02-23 11:49:25 -1000
commit21fa7beb71613703cff5ded2d77574b7e5180624 (patch)
treed047d4a2422914080c04f240f0c6f017b5684e09 /anaconda_log.py
parent20fa461fd5f34910c9cb2e91cf001fdaf3e94a10 (diff)
downloadanaconda-21fa7beb71613703cff5ded2d77574b7e5180624.tar.gz
anaconda-21fa7beb71613703cff5ded2d77574b7e5180624.tar.xz
anaconda-21fa7beb71613703cff5ded2d77574b7e5180624.zip
Revert "Use direct reference instead of setattr()."
This reverts commit 6317611f1d9990910d3d1f528c2f6e7b934fcd4d. Can't assign inside a lambda.
Diffstat (limited to 'anaconda_log.py')
-rw-r--r--anaconda_log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/anaconda_log.py b/anaconda_log.py
index 7ed5d4522..99ae58e4a 100644
--- a/anaconda_log.py
+++ b/anaconda_log.py
@@ -46,7 +46,7 @@ class LoggerClass(logging.Logger):
# Specialized addHandler that also adds the autoSetLevel attribute.
def addHandler(self, hdlr, autoSetLevel=True):
- hdlr.autoSetLevel = autoSetLevel
+ setattr(hdlr, "autoSetLevel", autoSetLevel)
logging.Logger.addHandler(self, hdlr)
class AnacondaLog: