Mercurial > hg
changeset 32617:e48cb1c7a902
py3: simply use b'%d\n' to format pid in server.py
Spotted by Martin, thanks.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 01 Jun 2017 23:05:29 +0900 |
parents | 6df193b5c437 |
children | d3e1c5b4986c |
files | mercurial/server.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/server.py Thu Jun 01 22:43:24 2017 +0900 +++ b/mercurial/server.py Thu Jun 01 23:05:29 2017 +0900 @@ -33,7 +33,7 @@ else: mode = 'wb' fp = open(opts['pid_file'], mode) - fp.write(str(pid).encode('latin1') + '\n') + fp.write('%d\n' % pid) fp.close() if opts['daemon'] and not opts['daemon_postexec']: