summaryrefslogtreecommitdiff
path: root/Lib/pstats.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-01 19:51:15 +0000
committerRaymond Hettinger <python@rcn.com>2002-06-01 19:51:15 +0000
commitc0b1bb6d1e60ccf5bb996982376f67f2a167b8d4 (patch)
tree19fbeeda95c0f7d860f26a2a34becdc38ea39971 /Lib/pstats.py
parente3a032af65863e1dcfa567e5bd597206852285fa (diff)
downloadcpython-c0b1bb6d1e60ccf5bb996982376f67f2a167b8d4.tar.gz
Replaced obsolete stat module constants with equivalent attributes
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r--Lib/pstats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index c5d8c3899f..384db5232c 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -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 ]