diff options
author | Gerald Combs <gerald@wireshark.org> | 2007-04-17 17:13:55 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2007-04-17 17:13:55 +0000 |
commit | fc2e2a7c3ba9f4ba1cd691437155d2f83ea6708d (patch) | |
tree | e50b17c3b7c50e7ab770e1c5cce566ec49786e34 /tools/make-dissector-reg.py | |
parent | ac582f5d97d1fee06939e28e3e3a0ff1c37b3442 (diff) |
Use the older-style ST_MTIME instead of st_mtime. This should fix backward
compatibility.
svn path=/trunk/; revision=21459
Diffstat (limited to 'tools/make-dissector-reg.py')
-rw-r--r-- | tools/make-dissector-reg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/make-dissector-reg.py b/tools/make-dissector-reg.py index bc484f9444..0b9776b42b 100644 --- a/tools/make-dissector-reg.py +++ b/tools/make-dissector-reg.py @@ -15,6 +15,7 @@ import os import sys import re import pickle +from stat import * # # The first argument is the directory in which the source files live. @@ -95,7 +96,7 @@ if cache_filename: # Grep for filename in filenames: file = open(filename) - cur_mtime = os.fstat(file.fileno()).st_mtime + cur_mtime = os.fstat(file.fileno())[ST_MTIME] if cache and cache.has_key(filename): cdict = cache[filename] if cur_mtime == cdict['mtime']: |