mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
changed to pass python 2 tests too
This commit is contained in:
parent
47bbd07733
commit
02cc130166
@ -57,7 +57,7 @@ class LargeFileManager(FileContentsManager):
|
||||
bcontent = content.encode('utf8')
|
||||
else:
|
||||
b64_bytes = content.encode('ascii')
|
||||
bcontent = base64.decodebytes(b64_bytes)
|
||||
bcontent = base64.b64decode(b64_bytes)
|
||||
except Exception as e:
|
||||
raise web.HTTPError(
|
||||
400, u'Encoding error saving %s: %s' % (os_path, e)
|
||||
|
Loading…
Reference in New Issue
Block a user