Padding for base64.b64decodestring changed into b'==='.

Fixes #6
This commit is contained in:
nejdet 2016-08-03 17:23:59 -04:00
parent 3279b0c52a
commit d3fbe07c90

View file

@ -107,9 +107,7 @@ def base642binary(b64_fname):
#b64_str = fin.read()
#fin.close()
# Decode base64 string to original binary sound object
missing_padding = 4 - len(b64_fname) % 4
if missing_padding:
b64_fname += b'='* missing_padding
b64_fname += b'==='
return base64.decodestring(b64_fname)
#return base64.b64decode(b64_fname)