From 3f58f9e18f8e38a80e32c5193393e0f0647497a1 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 17 Apr 2018 13:18:20 -0600 Subject: [PATCH] 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. --- xml/reg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/reg.py b/xml/reg.py index 5a59e03f..fd568e97 100755 --- a/xml/reg.py +++ b/xml/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