Commit da4453d8 authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! *: fix python2 compatibility with base64.encodebytes

parent 0895b5e4
......@@ -27,10 +27,12 @@
from __future__ import print_function
import base64
import six
# pylint:disable=no-name-in-module
if six.PY2:
from base64 import encodestring as base64_encodebytes
else:
from base64 import encodebytes as base64_encodebytes
# pylint:enable=no-name-in-module
from collections import defaultdict
from functools import partial, wraps
import hashlib
......
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