summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-02 03:16:08 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-02 03:16:08 (GMT)
commit96372a2657a471ffbba4bc50b976535a03d537d0 (patch)
tree2c05253f0ae01512f6984df54d100cb6fbf8a912 /Lib/shutil.py
parent64e736ba4e8c7d706f705e1e34a24f8e24d285d6 (diff)
downloadcpython-96372a2657a471ffbba4bc50b976535a03d537d0.zip
cpython-96372a2657a471ffbba4bc50b976535a03d537d0.tar.gz
cpython-96372a2657a471ffbba4bc50b976535a03d537d0.tar.bz2
ST_MODE should be ST_MTIME in utime call in copystat. Thanks to Mike Orr.
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 6d18570..752c1ec 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -37,7 +37,7 @@ def copystat(src, 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_MODE]))
+ os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MTIME]))
def copy(src, dst):