Skip to content

Commit

Permalink
[fix] CI python 3.4 doesnt support bytes % formating
Browse files Browse the repository at this point in the history
  • Loading branch information
bamthomas committed Sep 8, 2017
1 parent 8f92eb8 commit 44ee39c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aioimaplib/tests/imapserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ def _build_fetch_response(self, message, parts, by_uid=True):
message_headers = Message(policy=Compat32(linesep='\r\n'))
for hk in headers.split():
message_headers[hk] = message.email.get(hk, '')
response += (b'BODY[HEADER.FIELDS (%s)] {%d}\r\n%s' %
(headers.encode(), len(message_headers.as_bytes()), message_headers.as_bytes()))
response += ('BODY[HEADER.FIELDS (%s)] {%d}\r\n' %
(headers, len(message_headers.as_bytes()))).encode() + message_headers.as_bytes()
if part == 'FLAGS':
response += ('FLAGS (%s)' % ' '.join(message.flags)).encode()
response = response.strip(b' ')
Expand Down

0 comments on commit 44ee39c

Please sign in to comment.