Skip to content

Commit 02cc130

Browse files
committed
changed to pass python 2 tests too
1 parent 47bbd07 commit 02cc130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/services/contents/largefilemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _save_large_file(self, os_path, content, format):
5757
bcontent = content.encode('utf8')
5858
else:
5959
b64_bytes = content.encode('ascii')
60-
bcontent = base64.decodebytes(b64_bytes)
60+
bcontent = base64.b64decode(b64_bytes)
6161
except Exception as e:
6262
raise web.HTTPError(
6363
400, u'Encoding error saving %s: %s' % (os_path, e)

0 commit comments

Comments
 (0)