Commit 2d181876 authored by Marius Gedminas's avatar Marius Gedminas

Avoid DeprecationWarning about base64.decodestring in Py3

parent 5bc41c9b
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
"""Blobs """Blobs
""" """
import base64
import binascii import binascii
import logging import logging
import os import os
...@@ -32,7 +31,7 @@ import ZODB.interfaces ...@@ -32,7 +31,7 @@ import ZODB.interfaces
from ZODB.interfaces import BlobError from ZODB.interfaces import BlobError
from ZODB import utils from ZODB import utils
from ZODB.POSException import POSKeyError from ZODB.POSException import POSKeyError
from ZODB._compat import BytesIO, Unpickler from ZODB._compat import BytesIO, Unpickler, decodebytes
if sys.version_info[0] >= 3: if sys.version_info[0] >= 3:
...@@ -824,7 +823,7 @@ class BlobStorage(BlobStorageMixin): ...@@ -824,7 +823,7 @@ class BlobStorage(BlobStorageMixin):
# The serial_id is assumed to be given to us base-64 encoded # The serial_id is assumed to be given to us base-64 encoded
# (belying the web UI legacy of the ZODB code :-() # (belying the web UI legacy of the ZODB code :-()
serial_id = base64.decodestring(serial_id + b'\n') serial_id = decodebytes(serial_id + b'\n')
self._lock_acquire() self._lock_acquire()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment