Skip to content

Commit

Permalink
Merge pull request #83 from Staudey/tarfile-fix-python2
Browse files Browse the repository at this point in the history
Fix 3rd-party build failures for JetBrain IDEs (python2)
  • Loading branch information
silkeh authored Sep 18, 2024
2 parents ed0683b + 080809d commit 8b7fb8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pisi/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ def _tar_file_list(self):
with self._open_tar() as tar:
paths = [tarinfo.path for tarinfo in tar]

self.fileobj.seek(0)
if self.fileobj is not None:
self.fileobj.seek(0)

return paths

Expand Down

0 comments on commit 8b7fb8f

Please sign in to comment.