We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 920d65f + 2751372 commit c2de958Copy full SHA for c2de958
python/pythonmonkey/builtin_modules/base64.py
@@ -8,7 +8,8 @@
8
9
10
def atob(b64):
11
- return str(base64.standard_b64decode(b64), 'latin1')
+ padding = '=' * (4 - (len(b64) & 3))
12
+ return str(base64.standard_b64decode(b64 + padding), 'latin1')
13
14
15
def btoa(data):
0 commit comments