Improving performace from last commit.
This commit is contained in:
parent
8d88659179
commit
af9a75dc38
|
|
@ -12,7 +12,7 @@ class New():
|
|||
lReturn = []
|
||||
sBase, sSub = extract_unique_id(oToken)
|
||||
try:
|
||||
return self.dMap[sBase][sSub].copy()
|
||||
return self.dMap[sBase][sSub]
|
||||
except KeyError:
|
||||
return []
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ def get_if_statement_conditions(lAllTokens, oTokenMap):
|
|||
lReturn = []
|
||||
|
||||
lStart = oTokenMap.get_token_indexes(token.if_keyword)
|
||||
lStart = lStart.copy()
|
||||
lStart.extend(oTokenMap.get_token_indexes(token.elsif_keyword))
|
||||
lStart.sort()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue