diff --git a/bin/fetch-gn b/bin/fetch-gn index 4602c4ce69a8..4a9f6bceff19 100755 --- a/bin/fetch-gn +++ b/bin/fetch-gn @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2016 Google Inc. # @@ -13,10 +13,7 @@ import sys import tempfile import zipfile -if sys.version_info[0] < 3: - from urllib2 import urlopen -else: - from urllib.request import urlopen +from urllib.request import urlopen os.chdir(os.path.join(os.path.dirname(__file__), os.pardir)) diff --git a/bin/fetch-sk b/bin/fetch-sk index 1b978eede9c5..b535c570ac21 100755 --- a/bin/fetch-sk +++ b/bin/fetch-sk @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2021 Google Inc. # @@ -15,10 +15,8 @@ import sys import tempfile import zipfile -if sys.version_info[0] < 3: - from urllib2 import urlopen -else: - from urllib.request import urlopen +from urllib.request import urlopen + def sha256sum(path): try: