From 32200aeac697fcb3f2b4528127a2fbf0a22a8f17 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 1 Jun 2002 19:51:15 +0000 Subject: Replaced obsolete stat module constants with equivalent attributes --- Lib/pstats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/pstats.py') 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 ] -- cgit v1.2.1