From 77979a379e1ac334cf3add86dbcf8bd5bb6efe1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gust=C3=A4bel?= Date: Fri, 12 Dec 2008 14:58:38 +0000 Subject: 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. ........ --- Lib/tarfile.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Lib/tarfile.py') diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 222b433719..be7daf14c3 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -2265,10 +2265,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 as e: -- cgit v1.2.1