Merge pull request #2280 from delftswa2017/fix-deprecation-warning

Fix deprecated decodestring warning
Matthias Bussonnier 9 years ago committed by GitHub
commit 080028424a

@ -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)

@ -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.*

Loading…
Cancel
Save