From 9b6c6a99f1c6dcfc02790f0105540e297ec841ef Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 9 Dec 2010 17:35:54 -0200 Subject: small fixes on the log class and some minor typos --- g_octave/description.py | 2 +- g_octave/log.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/g_octave/description.py b/g_octave/description.py index f1c8449..96825fb 100644 --- a/g_octave/description.py +++ b/g_octave/description.py @@ -49,7 +49,7 @@ conf = Config() # octave-forge DESCRIPTION's dependencies atoms re_depends = re.compile(r'^([a-zA-Z0-9-]+) *(\( *([><=]?=?) *([0-9.]+) *\))?') -# we'll use atoms like 'control-1.0.11' to g-octave packages +# we'll use atoms like 'control-1.0.11' for g-octave packages re_pkg_atom = re.compile(r'^(.+)-([0-9.]+)$') class Description(object): diff --git a/g_octave/log.py b/g_octave/log.py index 8f393ca..b0c3010 100644 --- a/g_octave/log.py +++ b/g_octave/log.py @@ -54,6 +54,6 @@ class Log(object): self.logger.addHandler(self.handler) def __getattr__(self, attr): - if attr in ['debug', 'info', 'warning', 'error', 'critical']: + if attr in self._levels: return getattr(self.logger, attr) return lambda x: None -- cgit v1.2.3-65-gdbad