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/handlers.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/handlers.py')
-rw-r--r-- | poezio/core/handlers.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 268c9733..d34534d0 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -1404,7 +1404,7 @@ class HandlerCore: """ When a data form is received """ - self.core.information('%s' % message) + self.core.information(str(message)) def on_attention(self, message): """ @@ -1430,11 +1430,11 @@ class HandlerCore: """ if self.core.xml_tab: if PYGMENTS: - xhtml_text = highlight('%s' % stanza, LEXER, FORMATTER) + xhtml_text = highlight(str(stanza), LEXER, FORMATTER) poezio_colored = xhtml.xhtml_to_poezio_colors( xhtml_text, force=True).rstrip('\x19o').strip() else: - poezio_colored = '%s' % stanza + poezio_colored = str(stanza) self.core.add_message_to_text_buffer( self.core.xml_buffer, poezio_colored, @@ -1459,11 +1459,11 @@ class HandlerCore: """ if self.core.xml_tab: if PYGMENTS: - xhtml_text = highlight('%s' % stanza, LEXER, FORMATTER) + xhtml_text = highlight(str(stanza), LEXER, FORMATTER) poezio_colored = xhtml.xhtml_to_poezio_colors( xhtml_text, force=True).rstrip('\x19o').strip() else: - poezio_colored = '%s' % stanza + poezio_colored = str(stanza) self.core.add_message_to_text_buffer( self.core.xml_buffer, poezio_colored, |