Bugfix: when opening diffhitlist, use 'rb' mode

My thanks to Michał Górny, who both reported the problem
and provided the patch. Awesome!

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
This commit is contained in:
David A. Wheeler 2019-06-22 14:49:42 -04:00
parent d35fd2718a
commit 422473be6d
1 changed files with 1 additions and 1 deletions

View File

@ -2095,7 +2095,7 @@ def show_final_results():
# I'm not using <ol>, because its numbers might be confused with
# the risk levels or line numbers.
if diffhitlist_filename:
diff_file = open(diffhitlist_filename)
diff_file = open(diffhitlist_filename, 'rb')
diff_hitlist = pickle.load(diff_file)
if output_format:
print("<ul>")