mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-25 01:01:04 +00:00
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:
parent
63f57d95d6
commit
2b65a71d45
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user