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

login
register
mail settings
Submitter phabricator
Date April 10, 2018, 2:16 p.m.
Message ID <differential-rev-PHID-DREV-kniis5db2kd2w6uvp4df-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30628/
State Superseded
Headers show

Comments

phabricator - April 10, 2018, 2:16 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  1. skip-blame because just b'' prefix

REPOSITORY
  rHG Mercurial

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