summaryrefslogtreecommitdiff
path: root/poezio/text_buffer.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-07-21 17:09:52 +0200
committermathieui <mathieui@mathieui.net>2018-07-21 17:09:52 +0200
commitea2d76864da2448152428a62fe5c7daaea6ab0d3 (patch)
tree7ac279bb9b1efbe6025a0435d4a121f11080fcb0 /poezio/text_buffer.py
parent3ec153a6a01faca5445bb7c21e0d427bb5096320 (diff)
downloadpoezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.tar.gz
poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.tar.bz2
poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.tar.xz
poezio-ea2d76864da2448152428a62fe5c7daaea6ab0d3.zip
yapf -rip
Diffstat (limited to 'poezio/text_buffer.py')
-rw-r--r--poezio/text_buffer.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/poezio/text_buffer.py b/poezio/text_buffer.py
index 8043c834..a2e8c8ca 100644
--- a/poezio/text_buffer.py
+++ b/poezio/text_buffer.py
@@ -214,9 +214,8 @@ class TextBuffer:
if msg.ack == 1: # Message was already acked
return False
if msg.jid != jid:
- raise AckError(
- 'Wrong JID for message id %s (was %s, expected %s)' %
- (old_id, msg.jid, jid))
+ raise AckError('Wrong JID for message id %s (was %s, expected %s)'
+ % (old_id, msg.jid, jid))
msg.ack = value
if append:
@@ -253,9 +252,9 @@ class TextBuffer:
raise CorrectionError('Could not check the '
'identity of the sender')
elif not msg.user and msg.jid != jid:
- raise CorrectionError('Messages %s and %s have not been '
- 'sent by the same fullJID' % (old_id,
- new_id))
+ raise CorrectionError(
+ 'Messages %s and %s have not been '
+ 'sent by the same fullJID' % (old_id, new_id))
if not time:
time = msg.time