changed to pass python 2 tests too

This commit is contained in:
adimitrova 2017-03-13 11:56:30 +01:00
parent 47bbd07733
commit 02cc130166

View File

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