# HG changeset patch # User Goffi # Date 1410183745 -7200 # Node ID 2141f07b5fdd787534e9e8f52ad43b2d48ea7f1a # Parent c95462c21966038695bbe70fc89a16b83198bc8b primitivus: no more direct error/warning methods for logging diff -r c95462c21966 -r 2141f07b5fdd urwid_satext/sat_widgets.py --- a/urwid_satext/sat_widgets.py Mon Sep 08 15:42:23 2014 +0200 +++ b/urwid_satext/sat_widgets.py Mon Sep 08 15:42:25 2014 +0200 @@ -18,7 +18,7 @@ # along with this program. If not, see . import urwid -from logging import debug, info, warning, error +import logging as log import encodings utf8decode = lambda s: encodings.codecs.utf_8_decode(s)[0] @@ -1207,7 +1207,7 @@ if tab[0] == tab_name: break if tab[0] != tab_name: - error(_("INTERNAL ERROR: Tab not found")) + log.error(_("INTERNAL ERROR: Tab not found")) assert(False) self.__frame.body = tab[1] button.set_label(('title',button.get_label())) @@ -1342,7 +1342,7 @@ try: options[opt] = tuple(options[opt]) except TypeError: - warning('[%s] option is not a tuple' % opt) + log.warning('[%s] option is not a tuple' % opt) options[opt] = () self._options = options self._dividechars = dividechars