diff options
| author | Tobin Ehlis <tobine@google.com> | 2018-04-17 10:09:48 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2018-04-18 06:25:36 -0600 |
| commit | 0bef3a5d57d0bc030de36d12f9b8c7e0f03906fe (patch) | |
| tree | 4af6567d99f048f016e7275dc988871dd93a975d /scripts | |
| parent | 9e187e93e9b74eae1a1f4797d8f4ca8280edd42b (diff) | |
| download | usermoji-0bef3a5d57d0bc030de36d12f9b8c7e0f03906fe.tar.xz | |
scripts:Account for extnumber key to fix warnings
With the addition of the 'extnumber' key update comparison to skip over
the extnumber as well as extname in order to avoid a bunch of
irrelevant warnings.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/reg.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/reg.py b/scripts/reg.py index 5a59e03f..fd568e97 100755 --- a/scripts/reg.py +++ b/scripts/reg.py @@ -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 |
