Skip to content

Commit fcdcff8

Browse files
tormodvoldenperexg
authored andcommitted
doc: Open pickle file as binary
Closes: #15 Signed-off-by: Tormod Volden <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent f1146c3 commit fcdcff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/APICoverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_cached_parse(index_parser_list, name):
7272
if os.stat(source[2]).st_mtime > os.stat(name).st_mtime:
7373
modified = True
7474
if not modified:
75-
return pickle.load(open(name))
75+
return pickle.load(open(name, "rb"))
7676

7777
print("generating cache, file: %s" % name, end=' ')
7878
dict = {}

0 commit comments

Comments
 (0)