Skip to content

Commit

Permalink
remove refcycles from tarfile writing
Browse files Browse the repository at this point in the history
  • Loading branch information
pan324 committed Feb 10, 2024
1 parent 9d1a353 commit 7997388
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Lib/tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2030,7 +2030,6 @@ def gettarinfo(self, name=None, arcname=None, fileobj=None):
# Now, fill the TarInfo object with
# information specific for the file.
tarinfo = self.tarinfo()
tarinfo.tarfile = self # Not needed

# Use os.stat or os.lstat, depending on if symlinks shall be resolved.
if fileobj is None:
Expand Down

0 comments on commit 7997388

Please sign in to comment.