mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
parent
6a7a49c631
commit
8b33dd8e54
21 changed files with 56 additions and 56 deletions
|
@ -13,12 +13,12 @@ def main():
|
|||
file1, file2 = sys.argv[1], sys.argv[2]
|
||||
try:
|
||||
stat1 = os.stat(file1)
|
||||
except os.error:
|
||||
except OSError:
|
||||
sys.stderr.write(file1 + ': cannot stat\n')
|
||||
sys.exit(1)
|
||||
try:
|
||||
os.utime(file2, (stat1[ST_ATIME], stat1[ST_MTIME]))
|
||||
except os.error:
|
||||
except OSError:
|
||||
sys.stderr.write(file2 + ': cannot change time\n')
|
||||
sys.exit(2)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue