Skip to content

Commit

Permalink
as binary
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Jan 11, 2024
1 parent ddf1107 commit 86287bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/core/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def fetch_and_extract(url, archive_path, extract_path):

print('Extracting {} to {}'.format(archive_path, extract_path))
if tarfile.is_tarfile(archive_path):
with tarfile.open(archive_path) as tar:
with tarfile.open(archive_path, 'rb') as tar:
def is_within_directory(directory, target):

abs_directory = os.path.abspath(directory)
Expand Down

0 comments on commit 86287bc

Please sign in to comment.