Merge pull request #705 from KhronosGroup/tobin_reg_py_warning_fix

scripts:Account for extnumber key to fix warnings
This commit is contained in:
Jon Leech 2018-05-15 03:51:45 -07:00 committed by GitHub
commit 459fe9e80d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -96,11 +96,11 @@ class BaseInfo:
if selfKeys != infoKeys:
return False
# Ignore value of 'extname', as this will inherently be different
# when redefining the same interface in different feature and/or
# extension blocks.
# Ignore value of 'extname' and 'extnumber', as these will inherently
# be different when redefining the same interface in different feature
# and/or extension blocks.
for key in selfKeys:
if (key != 'extname' and
if (key != 'extname' and key != 'extnumber' and
(self.elem.get(key) != info.elem.get(key))):
return False