summaryrefslogtreecommitdiff
path: root/Lib/shutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index a248c6e90a..b44a069446 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -36,8 +36,8 @@ def copystat(src, dst):
"""Copy all stat info (mode bits, atime and mtime) from src to dst"""
st = os.stat(src)
mode = stat.S_IMODE(st[stat.ST_MODE])
- os.chmod(dst, mode)
os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MTIME]))
+ os.chmod(dst, mode)
def copy(src, dst):