Replaced obsolete stat module constants with equivalent attributes
diff --git a/Lib/imputil.py b/Lib/imputil.py
index d83b16e..5d462f1 100644
--- a/Lib/imputil.py
+++ b/Lib/imputil.py
@@ -484,7 +484,7 @@
s = _os_stat(pathname)
except OSError:
return None
- return (s[0] & 0170000) == 0040000
+ return (s.st_mode & 0170000) == 0040000
def _timestamp(pathname):
"Return the file modification time as a Long."
@@ -492,7 +492,7 @@
s = _os_stat(pathname)
except OSError:
return None
- return long(s[8])
+ return long(s.st_mtime)
######################################################################