Merge pull request #3057 from shawwn/2020-03-09/fix

Only try to initialize members whose name starts with 'm' followed by an uppercase character
pull/3058/head^2
Kim Kulling 2020-03-09 10:15:03 +01:00 committed by GitHub
commit 7b1187a917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)