mirror of
https://github.com/twisterarmy/DarkenedAges.git
synced 2025-03-12 13:31:19 +00:00
Fix case of "words" so long that base64 splits them to several lines
This commit is contained in:
parent
5e0e2597c6
commit
64c1a14473
@ -38,7 +38,7 @@ def bytes2str(b):
|
||||
return str(b, 'utf8', 'replace')
|
||||
|
||||
def bytes2base64(b):
|
||||
return str(codecs.encode(b, 'base64').strip(), 'ascii')
|
||||
return str(codecs.encode(b, 'base64').strip(), 'ascii').replace('\n','')
|
||||
|
||||
def base642bytes(b64):
|
||||
if b64 is None: return None # Might be missing
|
||||
|
Loading…
x
Reference in New Issue
Block a user