python: Avoid using 'is' to compare strings
This is the wrong operator to use, which only seems to work because
os.name
and 'nt'
happen to be the same object. Python 3.8 also
produces a SyntaxWarning
when encountering this pattern.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
This is the wrong operator to use, which only seems to work because
os.name
and 'nt'
happen to be the same object. Python 3.8 also
produces a SyntaxWarning
when encountering this pattern.