diff options
Diffstat (limited to 'tools/indexcap.py')
-rwxr-xr-x | tools/indexcap.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/indexcap.py b/tools/indexcap.py index d18e76f6..31f4e397 100755 --- a/tools/indexcap.py +++ b/tools/indexcap.py @@ -207,7 +207,7 @@ def main(): if options.dissect_files and not options.list_all_files and not options.list_all_proto_files: parser.error("--list-all-files or --list-all-proto-files must be specified") - if options.dissect_files and not options.compare_dir is None: + if options.dissect_files and options.compare_dir is not None: parser.error("--dissect-files and --compare-dir cannot be specified at the same time") index_file_name = args.pop(0) @@ -236,15 +236,15 @@ def main(): print(indexed_files) tshark_bin = find_tshark_executable(options.bin_dir) - if not tshark_bin is None: + if tshark_bin is not None: print("tshark: %s [FOUND]" % tshark_bin) else: print("tshark: %s [MISSING]" % tshark_bin) exit(1) - if not options.compare_dir is None: + if options.compare_dir is not None: tshark_cmp = find_tshark_executable(options.compare_dir) - if not tshark_cmp is None: + if tshark_cmp is not None: print("tshark: %s [FOUND]" % tshark_cmp) else: print("tshark: %s [MISSING]" % tshark_cmp) |