diff --git a/notebook/services/contents/largefilemanager.py b/notebook/services/contents/largefilemanager.py index 59328ef7e..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.decodestring(b64_bytes) + bcontent = base64.b64decode(b64_bytes) except Exception as e: raise web.HTTPError( 400, u'Encoding error saving %s: %s' % (os_path, e) diff --git a/setup.cfg b/setup.cfg index 622c74f59..7d3b74634 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,4 +8,4 @@ warningfilters=module |.* |DeprecationWarning |notebook.* ignore |.*schema.* |UserWarning |nbfor.* ignore |The 'warn' method is deprecated, use 'warning' instead | DeprecationWarning |notebook.* error |encodestring\(\) is a deprecated alias, use encodebytes\(\)| DeprecationWarning | notebook.* - + error |decodestring\(\) is a .*| DeprecationWarning | notebook.*