mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Replaced obsolete stat module constants with equivalent attributes
This commit is contained in:
parent
16e3c427f3
commit
32200aeac6
18 changed files with 59 additions and 79 deletions
|
|
@ -108,7 +108,7 @@ class Stats:
|
|||
f.close()
|
||||
try:
|
||||
file_stats = os.stat(arg)
|
||||
arg = time.ctime(file_stats[8]) + " " + arg
|
||||
arg = time.ctime(file_stats.st_mtime) + " " + arg
|
||||
except: # in case this is not unix
|
||||
pass
|
||||
self.files = [ arg ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue