Fixed syntax error in remove_WIDEn_N utility

This commit is contained in:
Bill Mitchell 2018-04-06 04:26:21 -05:00
parent 2384dbc904
commit 848610ae4e
1 changed files with 2 additions and 1 deletions

View File

@ -41,4 +41,5 @@ def remove_WIDEn_N(path):
returns: list of digipeaters that digipeated packet, in order
"""
path = map(lambda x: re.sub('*$', '', x), path) # Remove asterisks
return(path = list(filter(lambda x: not re.match(r'WIDE[0-9\-\*]+$', x), path)))
path = list(filter(lambda x: not re.match(r'WIDE[0-9\-\*]+$', x), path))
return(path)