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.
diff --git a/utils/check_symbol_exports.py b/utils/check_symbol_exports.py
index c9c0364..d4c8579 100755
--- a/utils/check_symbol_exports.py
+++ b/utils/check_symbol_exports.py
@@ -81,7 +81,7 @@
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: