From: Tormod Volden Date: Sat, 17 Aug 2024 17:13:01 +0000 (+0200) Subject: doc: Open pickle file as binary X-Git-Tag: v1.2.14~9 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=fcdcff88c7e7aa3d14f7ec1484e2d4a448a49105;p=alsa-python.git doc: Open pickle file as binary Closes: https://github.com/alsa-project/alsa-python/pull/15 Signed-off-by: Tormod Volden Signed-off-by: Jaroslav Kysela --- diff --git a/doc/APICoverage.py b/doc/APICoverage.py index 449265c..fcb69dd 100644 --- a/doc/APICoverage.py +++ b/doc/APICoverage.py @@ -72,7 +72,7 @@ def get_cached_parse(index_parser_list, name): if os.stat(source[2]).st_mtime > os.stat(name).st_mtime: modified = True if not modified: - return pickle.load(open(name)) + return pickle.load(open(name, "rb")) print("generating cache, file: %s" % name, end=' ') dict = {}