aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/fetch_from_npm.py
diff options
context:
space:
mode:
authorv-korovin <v-korovin@yandex-team.com>2024-09-26 10:35:27 +0300
committerv-korovin <v-korovin@yandex-team.com>2024-09-26 10:44:46 +0300
commitc9843510b39357d5510030691beecfab56e3bd17 (patch)
tree990009b83044e936303dec6b770033b46f59c6fc /build/scripts/fetch_from_npm.py
parent1339bbde1687911362cf2a244869e30003508986 (diff)
downloadydb-c9843510b39357d5510030691beecfab56e3bd17.tar.gz
futurize build/scripts
commit_hash:41fb885eb1e03094e65521671349e66f4225321b
Diffstat (limited to 'build/scripts/fetch_from_npm.py')
-rw-r--r--build/scripts/fetch_from_npm.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/scripts/fetch_from_npm.py b/build/scripts/fetch_from_npm.py
index 3941b59d43..d8f0c41f26 100644
--- a/build/scripts/fetch_from_npm.py
+++ b/build/scripts/fetch_from_npm.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+from future.utils import raise_
import os
import sys
import time
@@ -66,7 +68,7 @@ def fetch(tarball_url, sky_id, integrity, integrity_algorithm, file_name, tries=
time.sleep(i)
if exc_info:
- raise exc_info[0], exc_info[1], exc_info[2]
+ raise_(exc_info[0], exc_info[1], exc_info[2])
return fetched_file
@@ -104,7 +106,7 @@ if __name__ == "__main__":
main(args)
except Exception as e:
logging.exception(e)
- print >>sys.stderr, open(args.abs_log_path).read()
+ print(open(args.abs_log_path).read(), file=sys.stderr)
sys.stderr.flush()
import error