mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +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
|
@ -23,7 +23,7 @@ def listdir(path):
|
|||
except KeyError:
|
||||
cached_mtime, list = -1, []
|
||||
try:
|
||||
mtime = os.stat(path)[8]
|
||||
mtime = os.stat(path).st_mtime
|
||||
except os.error:
|
||||
return []
|
||||
if mtime != cached_mtime:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue