Skip to content

Commit a2bee4a

Browse files
committed
Fix for py36 compat.
1 parent 24e8d15 commit a2bee4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conan/tools/b2/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from conans.errors import ConanException
22
from hashlib import md5
3-
from base64 import b32hexencode
3+
from base64 import b32encode
44

55
__all__ = [
66
'b2_address_model',
@@ -259,4 +259,4 @@ def b2_variation_key(settings, options=None):
259259
"""
260260
A hashed key of the variation to use a UID for the variation.
261261
"""
262-
return b32hexencode(md5(b2_variation_id(settings, options).encode('utf-8')).digest()).decode('utf-8').lower().replace('=', '')
262+
return b32encode(md5(b2_variation_id(settings, options).encode('utf-8')).digest()).decode('utf-8').lower().replace('=', '')

0 commit comments

Comments
 (0)