pycompat: define operating system constants...
pycompat: define operating system constants
As suggested by Ryan in D1019, it's cleaner if we use defined constants
instead of `osname == 'nt'` everywhere.
Differential Revision:
https://phab.mercurial-scm.org/D1033