diff options
author | snermolaev <snermolaev@yandex-team.com> | 2023-09-20 09:55:52 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2023-09-20 10:30:49 +0300 |
commit | 12dab647f0e4a604fd6e3421866361b3fd5f5d8d (patch) | |
tree | 579054e4476cf084d2ce95f27213c5e03df410f4 /build/plugins/_common.py | |
parent | c78263f3defefa0d9e04bc9af5b72c855a886dcf (diff) | |
download | ydb-12dab647f0e4a604fd6e3421866361b3fd5f5d8d.tar.gz |
build ymake with py3-ymake
Diffstat (limited to 'build/plugins/_common.py')
-rw-r--r-- | build/plugins/_common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/plugins/_common.py b/build/plugins/_common.py index 7fc1593df0..7c595dd492 100644 --- a/build/plugins/_common.py +++ b/build/plugins/_common.py @@ -1,3 +1,4 @@ +import six import sys import hashlib import base64 @@ -22,7 +23,7 @@ def lazy(func): def pathid(path): - return base64.b32encode(hashlib.md5(path).digest()).lower().strip('=') + return six.ensure_str(base64.b32encode(hashlib.md5(six.ensure_binary(path)).digest()).lower().strip(b'=')) def listid(l): |