diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-20 00:42:13 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-20 00:42:13 +0100 |
commit | 97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb (patch) | |
tree | 1378ceac4dec6bf69d72b18c9a647588fff50363 /src/core.py | |
parent | f895d4a2f9f073830e760b06ee250c8495006158 (diff) | |
download | poezio-97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb.tar.gz poezio-97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb.tar.bz2 poezio-97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb.tar.xz poezio-97f7877ddbd8a83ce18b3b9ebb566a7b7a4c6acb.zip |
May improve some performance, but should be unnoticeable.
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 6 |
1 files changed, 3 insertions, 3 deletions
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() |