Commit 2dd8b34d authored by Jérome Perrin's avatar Jérome Perrin

fixup! *: use base64 encodebytes for python3.9

parent f37ffe13
......@@ -60,7 +60,7 @@ def encodeKey(key):
"""
# According to the memcached's protocol.txt, the key cannot contain
# control characters and white spaces.
return encodebytes(str2bytes(key), True).replace(b'\n', b'').replace(b'\r', b'')
return encodestring(str2bytes(key), True).replace(b'\n', b'').replace(b'\r', b'')
if memcache is not None:
# Real memcache tool
......
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