diff options
author | gvastash <gvastash@yandex-team.ru> | 2022-02-10 16:51:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:40 +0300 |
commit | 8ba73be0aad4f9f2ebb3eff4309918bc74fd08d3 (patch) | |
tree | 1e07aa31e9ba7922ebdc2a108a4af6a44bc4904e /build/scripts | |
parent | d1534e9f0d4be18cd2fff6367630bfd4c167168d (diff) | |
download | ydb-8ba73be0aad4f9f2ebb3eff4309918bc74fd08d3.tar.gz |
Restoring authorship annotation for <gvastash@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/scripts')
-rw-r--r-- | build/scripts/decimal_md5.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/scripts/decimal_md5.py b/build/scripts/decimal_md5.py index e70ca80a09..78de45b4ba 100644 --- a/build/scripts/decimal_md5.py +++ b/build/scripts/decimal_md5.py @@ -53,9 +53,9 @@ def main(): if args.fixed_output: try: - bitmask = (1 << args.lower_bits) - 1 - fmt = '{:0%dd}' % len(str(bitmask)) - checksum = fmt.format(int(args.fixed_output) & bitmask) + bitmask = (1 << args.lower_bits) - 1 + fmt = '{:0%dd}' % len(str(bitmask)) + checksum = fmt.format(int(args.fixed_output) & bitmask) except ValueError: raise ValueError("decimal_md5: bad value passed via --fixed-output: %s" % args.fixed_output) print_code(str(checksum), func_name=args.func_name) |