bundled_imaplib2 encode removed cr
This patch removes the cr in the encoding call. It avoids a crash.
This commit is contained in:
parent
6378c722b0
commit
6fa099ff74
@ -2268,9 +2268,9 @@ class _Authenticator(object):
|
||||
else:
|
||||
t = inp
|
||||
inp = b''
|
||||
e = binascii.b2a_base64(t)
|
||||
e = binascii.b2a_base64(t, newline=False)
|
||||
if e:
|
||||
oup = oup + e[:-1]
|
||||
oup = oup + e
|
||||
return oup
|
||||
|
||||
def decode(self, inp):
|
||||
|
Loading…
Reference in New Issue
Block a user