diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-12-09 17:35:54 -0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-12-09 17:35:54 -0200 |
commit | 9b6c6a99f1c6dcfc02790f0105540e297ec841ef (patch) | |
tree | 4411603347876b5821f205854d40342b55ae21ba | |
parent | fixed stuff to use the new config object (diff) | |
download | g-octave-9b6c6a99f1c6dcfc02790f0105540e297ec841ef.tar.gz g-octave-9b6c6a99f1c6dcfc02790f0105540e297ec841ef.tar.bz2 g-octave-9b6c6a99f1c6dcfc02790f0105540e297ec841ef.zip |
small fixes on the log class and some minor typos
-rw-r--r-- | g_octave/description.py | 2 | ||||
-rw-r--r-- | 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 |