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:
|
else:
|
||||||
t = inp
|
t = inp
|
||||||
inp = b''
|
inp = b''
|
||||||
e = binascii.b2a_base64(t)
|
e = binascii.b2a_base64(t, newline=False)
|
||||||
if e:
|
if e:
|
||||||
oup = oup + e[:-1]
|
oup = oup + e
|
||||||
return oup
|
return oup
|
||||||
|
|
||||||
def decode(self, inp):
|
def decode(self, inp):
|
||||||
|
Loading…
Reference in New Issue
Block a user