Patchwork D3220: py3: make sure we write bytes to file

login
register
mail settings
Submitter phabricator
Date April 11, 2018, 12:31 p.m.
Message ID <5a104d43ca0bc1f8866bf778b6684db8@localhost.localdomain>
Download mbox | patch
Permalink /patch/30686/
State Not Applicable
Headers show

Comments

phabricator - April 11, 2018, 12:31 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf5ffcac66c02: py3: make sure we write bytes to file (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3220?vs=7932&id=7972

REVISION DETAIL
  https://phab.mercurial-scm.org/D3220

AFFECTED FILES
  tests/test-mq.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-mq.t b/tests/test-mq.t
--- a/tests/test-mq.t
+++ b/tests/test-mq.t
@@ -1126,7 +1126,7 @@ 
   $ cat > writebin.py <<EOF
   > import sys
   > path = sys.argv[1]
-  > open(path, 'wb').write('BIN\x00ARY')
+  > open(path, 'wb').write(b'BIN\x00ARY')
   > EOF
   $ $PYTHON writebin.py bucephalus