Mercurial > public > mercurial-scm > hg
diff tests/dumbhttp.py @ 38593:e46c3b6a47b5
py3: fix dumbhttp.py to convert --daemon-postexec arguments back to bytes
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 08 Jul 2018 16:45:40 +0900 |
parents | 8bacc09814ba |
children | 2372284d9457 |
line wrap: on
line diff
--- a/tests/dumbhttp.py Sun Jul 08 16:31:14 2018 +0900 +++ b/tests/dumbhttp.py Sun Jul 08 16:45:40 2018 +0900 @@ -13,6 +13,7 @@ import sys from mercurial import ( + encoding, pycompat, server, util, @@ -66,7 +67,8 @@ opts = {b'pid_file': options.pid, b'daemon': not options.foreground, - b'daemon_postexec': options.daemon_postexec} + b'daemon_postexec': pycompat.rapply(encoding.strtolocal, + options.daemon_postexec)} service = simplehttpservice(options.host, options.port) runargs = [sys.executable, __file__] + sys.argv[1:] runargs = [pycompat.fsencode(a) for a in runargs]