Restore the close to this file object

This commit is contained in:
Donald Stufft 2016-01-19 05:39:54 -05:00
parent d8d6fd0850
commit 2bde707063
1 changed files with 1 additions and 0 deletions

View File

@ -575,6 +575,7 @@ def untar_file(filename, location):
ensure_dir(os.path.dirname(path))
with open(path, 'wb') as destfp:
shutil.copyfileobj(fp, destfp)
fp.close()
# Update the timestamp (useful for cython compiled files)
tar.utime(member, path)
# member have any execute permissions for user/group/world?