[issue8110] subprocess.py doesn't correctly detect Windows machines
Giampaolo Rodola'
report at bugs.python.org
Wed Sep 5 05:06:25 EDT 2018
Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
If os.name == 'nt' is True on IronPython then why not simply do:
mswindows = sys.platform == "win32" or os.name == "nt"
For the record, both variants are used in different places in cPython source code. It would nice to figure out a golden standard and apply it everywhere. Maybe even add it as a new WINDOWS constant in the platform module.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue8110>
_______________________________________
More information about the Python-bugs-list
mailing list