diff --git a/aprslib/util/__init__.py b/aprslib/util/__init__.py index 16507b2..811a320 100644 --- a/aprslib/util/__init__.py +++ b/aprslib/util/__init__.py @@ -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)