Mercurial > public > mercurial-scm > hg-stable
diff hg @ 34533:163fa0aea71e
dispatch: move initialization of sys.std* files
I'll add another Python 3 hack.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 02 Oct 2017 07:18:24 +0100 |
parents | 1900381b6a6e |
children | 5e78c100a215 |
line wrap: on
line diff
--- a/hg Mon Oct 02 06:52:10 2017 +0100 +++ b/hg Mon Oct 02 07:18:24 2017 +0100 @@ -37,11 +37,5 @@ sys.stderr.write("(check your install and PYTHONPATH)\n") sys.exit(-1) -from mercurial import ( - dispatch, - util, -) -for fp in (sys.stdin, sys.stdout, sys.stderr): - util.setbinary(fp) - +from mercurial import dispatch dispatch.run()