diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-02-23 11:49:25 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-02-23 11:49:25 -1000 |
commit | 21fa7beb71613703cff5ded2d77574b7e5180624 (patch) | |
tree | d047d4a2422914080c04f240f0c6f017b5684e09 /anaconda_log.py | |
parent | 20fa461fd5f34910c9cb2e91cf001fdaf3e94a10 (diff) | |
download | anaconda-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.py | 2 |
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: |