Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-10-15 19:59:41 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-11-23 16:14:35 (GMT)
commitadba508d8f4d0bc0b195dbebedb46c932ba91a83 (patch)
tree71ec00844de1ea754d9f5d4efcf2eac670a7d03f /src/sugar
parentff16cb0fa9d1b1b7eae822f86fb442a543e4d027 (diff)
pylint cleanup: pass format parameters to log functions instead of using %
This avoids the overhead from the string formatting on production systems. Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
Diffstat (limited to 'src/sugar')
-rw-r--r--src/sugar/wm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar/wm.py b/src/sugar/wm.py
index eaa196e..00c6fd0 100644
--- a/src/sugar/wm.py
+++ b/src/sugar/wm.py
@@ -32,7 +32,7 @@ def _property_get_trapped(window, prop, prop_type):
error = gtk.gdk.error_trap_pop()
if error:
logging.debug('Received X Error (%i) while getting '
- 'a property on a window' % error)
+ 'a property on a window', error)
return prop_info
@@ -45,7 +45,7 @@ def _property_change_trapped(window, prop, prop_type, format, mode, data):
error = gtk.gdk.error_trap_pop()
if error:
logging.debug('Received X Error (%i) while setting '
- 'a property on a window' % error)
+ 'a property on a window', error)
raise RuntimeError('Received X Error (%i) while setting '
'a property on a window' % error)