Mercurial > public > mercurial-scm > hg
diff mercurial/worker.py @ 34646:238abf65a8ad
codemod: use pycompat.isposix
This is done by:
sed -i "s/pycompat\.osname == 'posix'/pycompat.isposix/" **/*.py
Differential Revision: https://phab.mercurial-scm.org/D1036
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 12 Oct 2017 09:04:22 -0700 |
parents | 75979c8d4572 |
children | 02b36e860e0b |
line wrap: on
line diff
--- a/mercurial/worker.py Thu Oct 12 23:30:46 2017 -0700 +++ b/mercurial/worker.py Thu Oct 12 09:04:22 2017 -0700 @@ -53,7 +53,7 @@ raise error.Abort(_('number of cpus must be an integer')) return min(max(countcpus(), 4), 32) -if pycompat.osname == 'posix': +if pycompat.isposix: _startupcost = 0.01 else: _startupcost = 1e30