Mercurial > public > mercurial-scm > hg-stable
diff tests/test-patch-offset.t @ 38371:bf953d218a91
py3: encode sys.argv to bytes using .encode()
Differential Revision: https://phab.mercurial-scm.org/D3787
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 18 Jun 2018 15:27:34 +0530 |
parents | bfc9ab6c1bec |
children | 5abc47d4ca6b |
line wrap: on
line diff
--- a/tests/test-patch-offset.t Mon Jun 18 15:25:57 2018 +0530 +++ b/tests/test-patch-offset.t Mon Jun 18 15:27:34 2018 +0530 @@ -8,7 +8,7 @@ > fp = open(path, 'wb') > for pattern in patterns: > count = int(pattern[0:-1]) - > char = pattern[-1] + '\n' + > char = pattern[-1].encode('utf8') + b'\n' > fp.write(char*count) > fp.close() > EOF