D3220: py3: make sure we write bytes to file

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Wed Apr 11 08:31:56 EDT 2018


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

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
 



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


More information about the Mercurial-devel mailing list