Skip to content

Commit

Permalink
Update fetch-sk and fetch-gn to Python 3
Browse files Browse the repository at this point in the history
Bug: skia:14289
Change-Id: I951979327c2ffbb38f06b0d5539a0536a9569a90
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/685936
Reviewed-by: John Stiles <[email protected]>
  • Loading branch information
cmumford committed Apr 28, 2023
1 parent e88e5de commit 7ae5ef7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 2 additions & 5 deletions bin/fetch-gn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2016 Google Inc.
#
Expand All @@ -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))

Expand Down
8 changes: 3 additions & 5 deletions bin/fetch-sk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2021 Google Inc.
#
Expand All @@ -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:
Expand Down

0 comments on commit 7ae5ef7

Please sign in to comment.