contrib/fuzz/dirstate_corpus.py
changeset 43836 ba84a1ae4ae5
parent 43076 2372284d9457
child 48875 6000f5b25c9b
--- a/contrib/fuzz/dirstate_corpus.py	Tue Dec 10 15:29:58 2019 -0800
+++ b/contrib/fuzz/dirstate_corpus.py	Tue Dec 10 16:17:36 2019 -0800
@@ -13,5 +13,5 @@
 
 with zipfile.ZipFile(args.out[0], "w", zipfile.ZIP_STORED) as zf:
     if os.path.exists(dirstate):
-        with open(dirstate) as f:
+        with open(dirstate, 'rb') as f:
             zf.writestr("dirstate", f.read())