aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/fetch_from_external.py
diff options
context:
space:
mode:
authorneksard <neksard@yandex-team.ru>2022-02-10 16:45:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:33 +0300
commit1d9c550e7c38e051d7961f576013a482003a70d9 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /build/scripts/fetch_from_external.py
parent8f7cf138264e0caa318144bf8a2c950e0b0a8593 (diff)
downloadydb-1d9c550e7c38e051d7961f576013a482003a70d9.tar.gz
Restoring authorship annotation for <neksard@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/fetch_from_external.py')
-rw-r--r--build/scripts/fetch_from_external.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/build/scripts/fetch_from_external.py b/build/scripts/fetch_from_external.py
index 47060130f8..d4ed6f4221 100644
--- a/build/scripts/fetch_from_external.py
+++ b/build/scripts/fetch_from_external.py
@@ -1,11 +1,11 @@
-import sys
-import json
+import sys
+import json
import os.path
import fetch_from
import argparse
import logging
-
-
+
+
def parse_args():
parser = argparse.ArgumentParser()
fetch_from.add_common_arguments(parser)
@@ -13,8 +13,8 @@ def parse_args():
parser.add_argument('--custom-fetcher')
parser.add_argument('--resource-file')
return parser.parse_args()
-
-
+
+
def main(args):
external_file = args.external_file.rstrip('.external')
if os.path.isfile(args.resource_file):
@@ -25,7 +25,7 @@ def main(args):
try:
with open(args.external_file) as f:
js = json.load(f)
-
+
if js['storage'] == 'SANDBOX':
import fetch_from_sandbox as ffsb
del args.external_file
@@ -45,7 +45,7 @@ def main(args):
raise Exception(error)
-if __name__ == '__main__':
+if __name__ == '__main__':
args = parse_args()
fetch_from.setup_logging(args, os.path.basename(__file__))