projects
/
pyassuan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c6abd2
)
No b'...'.format() method (see http://bugs.python.org/issue3982).
author
W. Trevor King
<wking@tremily.us>
Sat, 21 Apr 2012 16:54:46 +0000
(12:54 -0400)
committer
W. Trevor King
<wking@tremily.us>
Sat, 21 Apr 2012 16:54:46 +0000
(12:54 -0400)
pyassuan/common.py
patch
|
blob
|
history
diff --git
a/pyassuan/common.py
b/pyassuan/common.py
index 2beed99b31ec46010e045e8d688f5b0ab1a93961..d3e29155cbcca23b7f04c185671d5f6fca108673 100644
(file)
--- 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')