From 02cc1301660445ab10c0757ed51b51cf63fcdbd9 Mon Sep 17 00:00:00 2001 From: adimitrova Date: Mon, 13 Mar 2017 11:56:30 +0100 Subject: [PATCH] changed to pass python 2 tests too --- notebook/services/contents/largefilemanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/services/contents/largefilemanager.py b/notebook/services/contents/largefilemanager.py index 8f0a8d9b1..10808ba83 100644 --- a/notebook/services/contents/largefilemanager.py +++ b/notebook/services/contents/largefilemanager.py @@ -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)