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 | 5fbc412b418e2c06f1e277b55511fd5cecc538f5 (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /build/scripts | |
parent | 8ba73be0aad4f9f2ebb3eff4309918bc74fd08d3 (diff) | |
download | ydb-5fbc412b418e2c06f1e277b55511fd5cecc538f5.tar.gz |
Restoring authorship annotation for <gvastash@yandex-team.ru>. Commit 2 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 78de45b4ba5..e70ca80a09f 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) |