Skip to content

Commit

Permalink
Bug fix; fix an error introduced when converting to Python 3 print fu…
Browse files Browse the repository at this point in the history
…nction syntax.
  • Loading branch information
david-cattermole committed Jul 5, 2020
1 parent 7499c36 commit 9a01b20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/download_unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
elif sys.version_info[0] == 3:
import urllib.request as urllib2


def download_file(url, out_file, user_agent=None):
print('Downloading: {}'.format(url))
filedata = None
Expand All @@ -61,7 +62,7 @@ def unpack_zip_archive(input_file, output_dir):

def unpack_tarball_archive(input_file, output_dir):
with tarfile.open(input_file, 'r') as f:
print('Extracting: {}'.format(output_dir)
print('Extracting: {}'.format(output_dir))
f.extractall(output_dir)
return

Expand Down

0 comments on commit 9a01b20

Please sign in to comment.