let the logger do the formatting

This commit is contained in:
Sascha Silbe
2009-08-24 12:54:02 +02:00
parent bdd760d92a
commit 496090fe62
15 changed files with 58 additions and 58 deletions
+2 -2
View File
@@ -143,8 +143,8 @@ class _IconBuffer(object):
del info
else:
logging.warning('No icon with the name %s '
'was found in the theme.' % self.icon_name)
logging.warning('No icon with the name %s was found in the '
'theme.', self.icon_name)
return icon_info
+2 -2
View File
@@ -110,7 +110,7 @@ class ObjectChooser(object):
def __chooser_response_cb(self, chooser_id, object_id):
if chooser_id != self._chooser_id:
return
logging.debug('ObjectChooser.__chooser_response_cb: %r' % object_id)
logging.debug('ObjectChooser.__chooser_response_cb: %r', object_id)
self._response_code = gtk.RESPONSE_ACCEPT
self._object_id = object_id
self._cleanup()
@@ -118,7 +118,7 @@ class ObjectChooser(object):
def __chooser_cancelled_cb(self, chooser_id):
if chooser_id != self._chooser_id:
return
logging.debug('ObjectChooser.__chooser_cancelled_cb: %r' % chooser_id)
logging.debug('ObjectChooser.__chooser_cancelled_cb: %r', chooser_id)
self._response_code = gtk.RESPONSE_CANCEL
self._cleanup()
+1 -1
View File
@@ -179,7 +179,7 @@ class Palette(PaletteWindow):
return self._full_request
def popup(self, immediate=False, state=None):
logging.debug('Palette.popup immediate %r' % immediate)
logging.debug('Palette.popup immediate %r', immediate)
if self._invoker is not None:
self._update_full_request()
+1 -1
View File
@@ -325,7 +325,7 @@ class PaletteWindow(gtk.Window):
self.show()
def popdown(self, immediate=False):
logging.debug('PaletteWindow.popdown immediate %r' % immediate)
logging.debug('PaletteWindow.popdown immediate %r', immediate)
self._popup_anim.stop()
self._mouse_detector.stop()
+1 -1
View File
@@ -205,7 +205,7 @@ class _ToolbarPalette(PaletteWindow):
def _handle_focus(self, delta):
self._focus += delta
if self._focus not in (0, 1):
logging.error('_Palette._focus=%s not in (0, 1)' % self._focus)
logging.error('_Palette._focus=%s not in (0, 1)', self._focus)
if self._focus == 0:
group = palettegroup.get_group('default')