Mercurial > p > roundup > code
diff roundup/configuration.py @ 2622:5a27c34e99ef
er... straighten the logic.
"if not" with "else" branch is one of the ugliest programming
constructs! sorry.
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Sun, 25 Jul 2004 13:21:38 +0000 |
| parents | 92c820cfcc4a |
| children | 4e1030d49cea |
line wrap: on
line diff
--- a/roundup/configuration.py Sun Jul 25 13:14:57 2004 +0000 +++ b/roundup/configuration.py Sun Jul 25 13:21:38 2004 +0000 @@ -1,6 +1,6 @@ # Roundup Issue Tracker configuration support # -# $Id: configuration.py,v 1.3 2004-07-25 13:12:59 a1s Exp $ +# $Id: configuration.py,v 1.4 2004-07-25 13:21:38 a1s Exp $ # __docformat__ = "restructuredtext" @@ -511,10 +511,10 @@ _option = _class(self, _section, *_args) self.add_option(_option) # load the config if tracker_home given - if tracker_home is not None: + if tracker_home is None: + self.init_logging() + else: self.load(tracker_home) - else: - self.init_logging() def add_option(self, option): """Adopt a new Option object"""
