Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/rcutil.py @ 34645:75979c8d4572
codemod: use pycompat.iswindows
This is done by:
sed -i "s/pycompat\.osname == 'nt'/pycompat.iswindows/" **/*.py
sed -i "s/pycompat\.osname != 'nt'/not pycompat.iswindows/" **/*.py
sed -i 's/pycompat.osname == "nt"/pycompat.iswindows/' **/*.py
Differential Revision: https://phab.mercurial-scm.org/D1034
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 12 Oct 2017 23:30:46 -0700 |
parents | d74b0cff94a9 |
children | edbcf5b239f9 |
comparison
equal
deleted
inserted
replaced
34644:c0a6c19690ff | 34645:75979c8d4572 |
---|---|
13 encoding, | 13 encoding, |
14 pycompat, | 14 pycompat, |
15 util, | 15 util, |
16 ) | 16 ) |
17 | 17 |
18 if pycompat.osname == 'nt': | 18 if pycompat.iswindows: |
19 from . import scmwindows as scmplatform | 19 from . import scmwindows as scmplatform |
20 else: | 20 else: |
21 from . import scmposix as scmplatform | 21 from . import scmposix as scmplatform |
22 | 22 |
23 fallbackpager = scmplatform.fallbackpager | 23 fallbackpager = scmplatform.fallbackpager |