diff -r dd94b9a68c61 -r 92932cd370a4 ConfigTreeNode.py --- a/ConfigTreeNode.py Tue Aug 15 16:01:18 2017 +0300 +++ b/ConfigTreeNode.py Tue Aug 15 16:48:49 2017 +0300 @@ -276,19 +276,19 @@ # confnode asks for some LDFLAGS if CTNLDFLAGS: # LDFLAGS can be either string - if type(CTNLDFLAGS)==type(str()): - LDFLAGS=[CTNLDFLAGS] + if type(CTNLDFLAGS) == type(str()): + LDFLAGS = [CTNLDFLAGS] # or list of strings - elif type(CTNLDFLAGS)==type(list()): - LDFLAGS=CTNLDFLAGS[:] + elif type(CTNLDFLAGS) == type(list()): + LDFLAGS = CTNLDFLAGS[:] else: - LDFLAGS=[] + LDFLAGS = [] # recurse through all children, and stack their results for CTNChild in self.IECSortedChildren(): new_location = CTNChild.GetCurrentLocation() # How deep are we in the tree ? - depth=len(new_location) + depth = len(new_location) _LocationCFilesAndCFLAGS, _LDFLAGS, _extra_files = \ CTNChild._Generate_C( # keep the same path @@ -397,7 +397,7 @@ # Do nothing if no change #if CurrentName == DesiredName: return CurrentName # Build a list of used Name out of parent's Children - AllNames=[] + AllNames = [] for CTNInstance in self.CTNParent.IterChildren(): if CTNInstance != self: AllNames.append(CTNInstance.BaseParams.getName()) @@ -429,7 +429,7 @@ return res def GetAllChannels(self): - AllChannels=[] + AllChannels = [] for CTNInstance in self.CTNParent.IterChildren(): if CTNInstance != self: AllChannels.append(CTNInstance.BaseParams.getIEC_Channel())