Fix use of 'is' operator for comparison (#2547)

The 'is' operator is not meant to be used for comparisons. It currently working is an implementation detail of CPython.
CPython 3.8 has added a SyntaxWarning for this.
This commit is contained in:
Raul Tambre 2019-05-07 21:19:32 +03:00 committed by David Neto
parent 63f57d95d6
commit 2b65a71d45

View File

@ -81,7 +81,7 @@ def main():
print('{}: error: {} does not exist'.format(PROG, args.library))
sys.exit(1)
if os.name is 'posix':
if os.name == 'posix':
status = check_library(args.library)
sys.exit(status)
else: