changeset 37526:f5ffcac66c02

py3: make sure we write bytes to file # skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D3220
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 10 Apr 2018 19:32:08 +0530
parents a7de62adcf03
children 1c09481acdcc
files tests/test-mq.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-mq.t	Tue Apr 10 19:21:16 2018 +0530
+++ b/tests/test-mq.t	Tue Apr 10 19:32:08 2018 +0530
@@ -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