From: W. Trevor King Date: Sat, 21 Apr 2012 16:54:46 +0000 (-0400) Subject: No b'...'.format() method (see http://bugs.python.org/issue3982). X-Git-Tag: v0.2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=266ff017f5a208936026dff93ffcd50a07e80337;p=pyassuan.git No b'...'.format() method (see bugs.python.org/issue3982). --- diff --git a/pyassuan/common.py b/pyassuan/common.py index 2beed99..d3e2915 100644 --- a/pyassuan/common.py +++ b/pyassuan/common.py @@ -220,7 +220,7 @@ class Response (object): def __bytes__(self): if self.parameters: if self.type == 'D': - return b'{} {}'.format(b'D', self.parameters) + return b' '.join((b'D', self.parameters)) else: return '{} {}'.format( self.type, encode(self.parameters)).encode('utf-8')