From b63af145d9933e5dc301f3ceeec1f8e4b4eb98b6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 22 Sep 2018 09:58:09 +0200 Subject: [PATCH] Fix shutil call in update_3rdparty.py shutil.unpack_archive takes a filename. --- scripts/dev/update_3rdparty.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/dev/update_3rdparty.py b/scripts/dev/update_3rdparty.py index c40015d22..277d4eefc 100755 --- a/scripts/dev/update_3rdparty.py +++ b/scripts/dev/update_3rdparty.py @@ -86,8 +86,7 @@ def update_pdfjs(target_version=None): shutil.rmtree(target_path) os.makedirs(target_path) print("Extracting new version") - with open(archive_path, 'rb') as archive: - shutil.unpack_archive(archive, target_path, 'zip') + shutil.unpack_archive(archive_path, target_path, 'zip') urllib.request.urlcleanup()