summaryrefslogtreecommitdiff
path: root/poezio/core/handlers.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-28 14:49:54 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-28 14:49:54 +0200
commit7b3a116d7602a25dd71b16133be44a35cb3d7cf1 (patch)
treeca0a1db4b241d73442f044778f128f129f8f4416 /poezio/core/handlers.py
parente846825fc812cdf48717dd1c156d430101e2f5d0 (diff)
downloadpoezio-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.py10
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,