diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-10-15 19:59:41 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2011-02-10 19:19:16 (GMT) |
commit | c63c4f28ae8730e9ec1f5a4446c8c69c3c3f66e2 (patch) | |
tree | d997ebf193f20367484511864f405a6972cc5307 /src | |
parent | 9d60dbacc363bba51139fb3ff3fb2b6a6fac4fa5 (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')
-rw-r--r-- | src/sugar/wm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar/wm.py b/src/sugar/wm.py index cd8f200..2a3300e 100644 --- a/src/sugar/wm.py +++ b/src/sugar/wm.py @@ -31,7 +31,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 @@ -43,7 +43,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) |