Show More
@@ -2503,12 +2503,10 b' class filestat:' | |||||
2503 | advanced = (old.stat[stat.ST_MTIME] + 1) & 0x7FFFFFFF |
|
2503 | advanced = (old.stat[stat.ST_MTIME] + 1) & 0x7FFFFFFF | |
2504 | try: |
|
2504 | try: | |
2505 | os.utime(path, (advanced, advanced)) |
|
2505 | os.utime(path, (advanced, advanced)) | |
2506 |
except |
|
2506 | except PermissionError: | |
2507 | if inst.errno == errno.EPERM: |
|
2507 | # utime() on the file created by another user causes EPERM, | |
2508 | # utime() on the file created by another user causes EPERM, |
|
2508 | # if a process doesn't have appropriate privileges | |
2509 | # if a process doesn't have appropriate privileges |
|
2509 | return False | |
2510 | return False |
|
|||
2511 | raise |
|
|||
2512 | return True |
|
2510 | return True | |
2513 |
|
2511 | |||
2514 | def __ne__(self, other): |
|
2512 | def __ne__(self, other): |
General Comments 0
You need to be logged in to leave comments.
Login now