From 97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 20 Nov 2011 00:42:13 +0100 Subject: May improve some performance, but should be unnoticeable. --- src/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core.py') diff --git a/src/core.py b/src/core.py index 1e6d52cf..7f578bd2 100644 --- a/src/core.py +++ b/src/core.py @@ -717,7 +717,7 @@ class Core(object): if not contact: contact = Contact(jid) roster.add_contact(contact, jid) - log.debug("CONTACT: %s" % contact) + log.debug("CONTACT: %s", contact) if contact.subscription in ('from', 'both'): log.debug('FROM OR BOTH') return @@ -1346,7 +1346,7 @@ class Core(object): try: names = os.listdir(themes_dir) except OSError as e: - log.debug(_('Completion failed: %s') % e) + log.debug(_('Completion failed: %s'), e) return theme_files = [name[:-3] for name in names if name.endswith('.py')] if not 'default' in theme_files: @@ -1687,7 +1687,7 @@ class Core(object): self.tabs.remove(tab) import gc gc.collect() - log.debug('___ Referrers of closing tab:\n%s\n______' % gc.get_referrers(tab)) + log.debug('___ Referrers of closing tab:\n%s\n______', gc.get_referrers(tab)) del tab self.refresh_window() -- cgit v1.2.3