summaryrefslogtreecommitdiffstats
path: root/Lib/tarfile.py
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2008-12-12 14:14:42 (GMT)
committerLars Gustäbel <lars@gustaebel.de>2008-12-12 14:14:42 (GMT)
commit696d6ba6b9c03884c80c789ffb6486f8a65795ab (patch)
treef75f5275ade0fc1d15cef21cac9c7df7131ac11f /Lib/tarfile.py
parent717d5d0a501c4061bd195c083a8258bd2a2745ab (diff)
downloadcpython-696d6ba6b9c03884c80c789ffb6486f8a65795ab.zip
cpython-696d6ba6b9c03884c80c789ffb6486f8a65795ab.tar.gz
cpython-696d6ba6b9c03884c80c789ffb6486f8a65795ab.tar.bz2
Merged revisions 67717 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r67717 | lars.gustaebel | 2008-12-12 14:58:03 +0100 (Fri, 12 Dec 2008) | 2 lines Issue #4616: TarFile.utime(): Restore directory times on Windows. ........
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r--Lib/tarfile.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index ab74cc5..b678185 100644
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -2284,10 +2284,6 @@ class TarFile(object):
"""
if not hasattr(os, 'utime'):
return
- if sys.platform == "win32" and tarinfo.isdir():
- # According to msdn.microsoft.com, it is an error (EACCES)
- # to use utime() on directories.
- return
try:
os.utime(targetpath, (tarinfo.mtime, tarinfo.mtime))
except EnvironmentError, e: