mirror of https://github.com/python/cpython
ST_MODE should be ST_MTIME in utime call in copystat. Thanks to Mike Orr.
This commit is contained in:
parent
64e736ba4e
commit
96372a2657
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue