diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-01-26 21:38:53 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-01-26 21:38:53 +0000 |
commit | 3080352f4f736f8adb22f9029483bff6a45b160e (patch) | |
tree | f2134397bd216a0b36e553a443e2744a0ead1624 /tools/make-dissector-reg.py | |
parent | e1d434ee6a56f86ad9e79e2f127382e3bc4409e6 (diff) |
make-dissector-reg.py doesn't always open its cache file.
svn path=/trunk/; revision=40736
Diffstat (limited to 'tools/make-dissector-reg.py')
-rwxr-xr-x | tools/make-dissector-reg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/make-dissector-reg.py b/tools/make-dissector-reg.py index 1c73dadec4..e579c69a8f 100755 --- a/tools/make-dissector-reg.py +++ b/tools/make-dissector-reg.py @@ -123,7 +123,7 @@ if cache_filename: except: cache = {VERSION_KEY: CUR_VERSION} -print(("Registering %d files, %d cached" % (len(filenames), len(list(cache.keys()))-1))) + print(("Registering %d files, %d cached" % (len(filenames), len(list(cache.keys()))-1))) # Grep cache_hits = 0 @@ -164,12 +164,12 @@ for filename in filenames: cache[filename][sym_type].append(symbol) file.close() -print(("Cache hits: %d, misses: %d" % (cache_hits, cache_misses))) if cache is not None and cache_filename is not None: cache_file = open(cache_filename, 'wb') pickle.dump(cache, cache_file) cache_file.close() + print(("Cache hits: %d, misses: %d" % (cache_hits, cache_misses))) # Make sure we actually processed something if len(regs['proto_reg']) < 1: |