reuse already split output for filtering (#4310)
there is no need to call out.split('\n') multiple times (line 275 and 277)
This commit is contained in:
parent
9dde201d87
commit
6a78349f65
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ def main():
|
|||
lines = out.split('\n')
|
||||
filt = globals().get(command + "_filter_output", None)
|
||||
if filt:
|
||||
filtered_output = filter(filt, out.split('\n'))
|
||||
filtered_output = filter(filt, lines)
|
||||
if len(filtered_output):
|
||||
changed = filtered_output
|
||||
|
||||
|
|
Loading…
Reference in a new issue