diff options
author | khlebnikov <khlebnikov@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
commit | df35d89845ad252e6db1c6adf84da9b15de0e3b3 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /build/scripts/fetch_from_mds.py | |
parent | 6cffcf9a14a1dd07278bd534c7cca706ec2827b3 (diff) | |
download | ydb-df35d89845ad252e6db1c6adf84da9b15de0e3b3.tar.gz |
Restoring authorship annotation for <khlebnikov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/fetch_from_mds.py')
-rw-r--r-- | build/scripts/fetch_from_mds.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/build/scripts/fetch_from_mds.py b/build/scripts/fetch_from_mds.py index 18b680f0bb..5e4e656394 100644 --- a/build/scripts/fetch_from_mds.py +++ b/build/scripts/fetch_from_mds.py @@ -1,7 +1,7 @@ import os import sys import logging -import argparse +import argparse import fetch_from @@ -9,10 +9,10 @@ MDS_PREFIX = "https://storage.yandex-team.ru/get-devtools/" def parse_args(): - parser = argparse.ArgumentParser() - fetch_from.add_common_arguments(parser) + parser = argparse.ArgumentParser() + fetch_from.add_common_arguments(parser) - parser.add_argument('--key', required=True) + parser.add_argument('--key', required=True) return parser.parse_args() @@ -29,21 +29,21 @@ def fetch(key): return fetched_file, file_name -def main(args): - fetched_file, resource_file_name = fetch(args.key) +def main(args): + fetched_file, resource_file_name = fetch(args.key) - fetch_from.process(fetched_file, resource_file_name, args) + fetch_from.process(fetched_file, resource_file_name, args) if __name__ == '__main__': - args = parse_args() + args = parse_args() fetch_from.setup_logging(args, os.path.basename(__file__)) try: - main(args) + main(args) except Exception as e: logging.exception(e) - print >>sys.stderr, open(args.abs_log_path).read() + print >>sys.stderr, open(args.abs_log_path).read() sys.stderr.flush() import error |