diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-28 14:49:54 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-28 14:49:54 +0200 |
commit | 7b3a116d7602a25dd71b16133be44a35cb3d7cf1 (patch) | |
tree | ca0a1db4b241d73442f044778f128f129f8f4416 /poezio/core/core.py | |
parent | e846825fc812cdf48717dd1c156d430101e2f5d0 (diff) | |
download | poezio-7b3a116d7602a25dd71b16133be44a35cb3d7cf1.tar.gz poezio-7b3a116d7602a25dd71b16133be44a35cb3d7cf1.tar.bz2 poezio-7b3a116d7602a25dd71b16133be44a35cb3d7cf1.tar.xz poezio-7b3a116d7602a25dd71b16133be44a35cb3d7cf1.zip |
Replace the '%s' % var pattern with str(var).
Diffstat (limited to 'poezio/core/core.py')
-rw-r--r-- | poezio/core/core.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py index 7c6ad886..b708e2cf 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -810,7 +810,7 @@ class Core(object): 'Could not execute command (%s)', repr(command), exc_info=True) - self.information('%s' % exc, 'Error') + self.information(str(exc), 'Error') def do_command(self, key, raw): """ @@ -1179,7 +1179,7 @@ class Core(object): def go_to_previous_tab(self): "Go to the previous tab" - self.command.win('%s' % (self.previous_tab_nb, )) + self.command.win(str(self.previous_tab_nb)) def go_to_important_room(self): """ @@ -1207,7 +1207,7 @@ class Core(object): if (tab.nb < self.current_tab_nb and tab_refs[state][-1].nb > self.current_tab_nb): continue - self.command.win('%s' % tab.nb) + self.command.win(str(tab.nb)) return return @@ -1216,7 +1216,7 @@ class Core(object): for tab in self.tabs: if tab.name == tab_name: if (type_ and (isinstance(tab, type_))) or not type_: - self.command.win('%s' % (tab.nb, )) + self.command.win(str(tab.nb)) return True return False @@ -1267,7 +1267,7 @@ class Core(object): # if the room exists, focus it and return for tab in self.get_tabs(tabs.PrivateTab): if tab.name == complete_jid: - self.command.win('%s' % tab.nb) + self.command.win(str(tab.nb)) return tab # create the new tab tab = self.get_tab_by_name(room_name, tabs.MucTab) |