diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-10-15 19:59:41 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2010-10-22 17:26:26 (GMT) |
commit | ada9973543a0dbd0bc923d6d457140adc0346692 (patch) | |
tree | 145ce9508cc9984ee21fbecb12ea3d4cf61ac919 | |
parent | 9b8b16376352b974238be98234861dd5cbb377f5 (diff) |
pylint cleanup: pass format parameters to log functions instead of using %
This avoids the overhead from the string formatting on production systems.
-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 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) |