summaryrefslogtreecommitdiff
path: root/Lib/pstats.py
diff options
context:
space:
mode:
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 ]