From 75f89cdf6e5e31f7fea3bbca17de161689a9f763 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 2 Jul 2017 11:53:23 -0700 Subject: [PATCH] PortLookup: don't show notes fields marked as ? --- PortLookup/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PortLookup/plugin.py b/PortLookup/plugin.py index 8bf33ea..770414d 100644 --- a/PortLookup/plugin.py +++ b/PortLookup/plugin.py @@ -99,7 +99,7 @@ class PortLookup(callbacks.Plugin): # List the port notes (tags such as "Official", "TCP", "UDP", etc.) # This is every tag except the 4th one, which is the description parsed # above. - notes = [t.text.strip() for t in tds[:3]+tds[4:]] + notes = [t.text.strip() for t in tds[:3]+tds[4:] if '?' not in t] notes = '; '.join(filter(None, notes)) # Remove \n, etc. in fields to prevent output corruption.