Only try to initialize members whose name starts with 'm' followed by an uppercase character

pull/3057/head
Shawn Presser 2020-03-09 00:05:17 -07:00
parent 339f9387a7
commit f305f10551
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ def _init(self, target = None, parent = None):
logger.debug(str(self) + ": Added array " + str(getattr(target, name)) + " as self." + name.lower())
continue
if m.startswith('m'):
if m.startswith('m') and len(m) > 1 and m[1].upper() == m[1]:
if name == "parent":
setattr(target, name, parent)