From 266ff017f5a208936026dff93ffcd50a07e80337 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 21 Apr 2012 12:54:46 -0400 Subject: [PATCH] No b'...'.format() method (see http://bugs.python.org/issue3982). --- pyassuan/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.26.2