diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-01 19:51:15 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 19:51:15 (GMT) |
commit | 32200aeac697fcb3f2b4528127a2fbf0a22a8f17 (patch) | |
tree | b99f2c04d576a3699ab9a2b6dfc1fc0e31e3c734 /Lib/pstats.py | |
parent | 16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1 (diff) | |
download | cpython-32200aeac697fcb3f2b4528127a2fbf0a22a8f17.zip cpython-32200aeac697fcb3f2b4528127a2fbf0a22a8f17.tar.gz cpython-32200aeac697fcb3f2b4528127a2fbf0a22a8f17.tar.bz2 |
Replaced obsolete stat module constants with equivalent attributes
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r-- | Lib/pstats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py index c5d8c38..384db52 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 ] |