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:
parent
d35fd2718a
commit
422473be6d
|
@ -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>")
|
||||
|
|
Loading…
Reference in New Issue