diff contrib/fuzz/revlog_corpus.py @ 43836:ba84a1ae4ae5

fuzz: fix test-fuzz-targets.t to run with python3 Differential Revision: https://phab.mercurial-scm.org/D7601
author Kyle Lippincott <spectral@google.com>
date Tue, 10 Dec 2019 16:17:36 -0800
parents 54a6846ba96f
children 6000f5b25c9b
line wrap: on
line diff
--- a/contrib/fuzz/revlog_corpus.py	Tue Dec 10 15:29:58 2019 -0800
+++ b/contrib/fuzz/revlog_corpus.py	Tue Dec 10 16:17:36 2019 -0800
@@ -18,8 +18,8 @@
 
 with zipfile.ZipFile(args.out[0], "w", zipfile.ZIP_STORED) as zf:
     if os.path.exists(changelog):
-        with open(changelog) as f:
+        with open(changelog, 'rb') as f:
             zf.writestr("00changelog.i", f.read())
     if os.path.exists(contributing):
-        with open(contributing) as f:
+        with open(contributing, 'rb') as f:
             zf.writestr("contributing.i", f.read())