This commit is contained in:
Peter D. Gray 2024-06-20 13:39:49 -04:00
parent d373a863ef
commit 3a433ce82b
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -173,9 +173,7 @@ class Base64Writer:
self.runt = buf[-rl:] if rl else b''
if rl < len(buf):
tmp = b2a_base64(buf[:(-rl if rl else None)])
# library puts in newlines!?
assert tmp[-1:] == b'\n', tmp
assert tmp[-2:-1] != b'=', tmp
# library puts in a newline, remove it
self.fd.write(tmp[:-1])
def b2a_base64url(s):