Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove [citation needed] and added <br> for multiple ports

  • Loading branch information...
commit 4826f4540ad0d1639bd01554e2114b9afba3b5b8 1 parent ea3226f
@gaganpreet gaganpreet authored kentfredric committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 port_lookup/parse.py
View
4 port_lookup/parse.py
@@ -62,6 +62,8 @@ def get_protocol_string(tcp, udp):
# Remove citenote text
description = re.sub("\[\d*\]", "", cells[3].text_content());
+ # And [citation needed] text too
+ description = re.sub("\[citation needed\]", "", cells[3].text_content());
status = cells[4].text_content();
@@ -78,7 +80,7 @@ def get_protocol_string(tcp, udp):
for port, descriptions in ports_list.iteritems():
- description = unicode("\\n".join(descriptions)).encode("utf-8");
+ description = unicode("<br />".join(descriptions)).encode("utf-8");
f.write("\t".join([str(port), # title
"", # namespace
url, # url
Please sign in to comment.
Something went wrong with that request. Please try again.