Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Jun 19, 2024
1 parent 9e8c348 commit cc5d5c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def unpack_impl(filename, destination):
if filename.endswith('tar.gz'):
file = tarfile.open(filename, 'r:gz')
file.extractall(destination)
dirname = tfile.getnames()[0]
dirname = file.getnames()[0]
elif filename.endswith('zip'):
file = zipfile.ZipFile(filename)
file.extractall(destination)
dirname = zfile.namelist()[0]
dirname = file.namelist()[0]
else:
raise NotImplementedError('Unsupported archive type')

Expand Down

0 comments on commit cc5d5c1

Please sign in to comment.