Skip to content

Commit

Permalink
Merge 3.5, issue python#27194
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv committed Jun 11, 2016
2 parents 6a7506a + e7f2748 commit 5135e9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2153,10 +2153,10 @@ def makefile(self, tarinfo, targetpath):
for offset, size in tarinfo.sparse:
target.seek(offset)
copyfileobj(source, target, size, ReadError)
target.seek(tarinfo.size)
target.truncate()
else:
copyfileobj(source, target, tarinfo.size, ReadError)
target.seek(tarinfo.size)
target.truncate()

def makeunknown(self, tarinfo, targetpath):
"""Make a file from a TarInfo object with an unknown type
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ Stefan Franke
Martin Franklin
Kent Frazier
Bruce Frederiksen
Jason Fried
Robin Friedrich
Bradley Froehle
Ivan Frohne
Expand Down

0 comments on commit 5135e9e

Please sign in to comment.