[core] Node: hasInternalAttribute does not support groups and lists

hasInternalAttribute() should not support more cases than internalAttribute()
This commit is contained in:
Fabien Castan 2023-02-22 12:04:00 +01:00 committed by GitHub
parent 311ab9cb40
commit 25c12bbc51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -629,9 +629,6 @@ class BaseNode(BaseObject):
@Slot(str, result=bool)
def hasInternalAttribute(self, name):
if "[" in name or "." in name:
p = self.attributeRE.findall(name)
return p[0][0] in self._internalAttributes.keys() or p[0][1] in self._internalAttributes.keys()
return name in self._internalAttributes.keys()
def _applyExpr(self):