Patchwork [1,of,4] py3: open file in binary mode in test-bundle2-remote-changegroup.t

login
register
mail settings
Submitter Yuya Nishihara
Date July 12, 2018, 2:17 p.m.
Message ID <fe6ac85bbf77ebebec9d.1531405047@mimosa>
Download mbox | patch
Permalink /patch/32814/
State Accepted
Headers show

Comments

Yuya Nishihara - July 12, 2018, 2:17 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1531046460 -32400
#      Sun Jul 08 19:41:00 2018 +0900
# Node ID fe6ac85bbf77ebebec9d0030549f7e1ae525f4b2
# Parent  572dff5c946e05bc4743531803a5b79a6067f646
py3: open file in binary mode in test-bundle2-remote-changegroup.t

Patch

diff --git a/tests/test-bundle2-remote-changegroup.t b/tests/test-bundle2-remote-changegroup.t
--- a/tests/test-bundle2-remote-changegroup.t
+++ b/tests/test-bundle2-remote-changegroup.t
@@ -47,7 +47,7 @@  Create an extension to test bundle2 remo
   >         part = bundler.newpart(name, data=data)
   >         return part
   > 
-  >     for line in open(repo.vfs.join('bundle2maker'), 'r'):
+  >     for line in open(repo.vfs.join('bundle2maker'), 'rb'):
   >         line = line.strip()
   >         try:
   >             verb, args = line.split(None, 1)