Skip to content

Commit

Permalink
Remove some extraneous code.
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan P.C. McQuen <[email protected]>
  • Loading branch information
Ryan P.C. McQuen committed Sep 19, 2017
1 parent c9d1f06 commit 75f04da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unclosedTagFinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
htmlFile = open(args.filename)
html = htmlFile.read()
tags = re.compile('<[^\!][^>]*>', flags=re.I | re.M)
tagList = re.findall(tags, str(html))
tagList = re.findall(tags, html)
htmlFile.close()
openingTagList = list(
filter(
Expand All @@ -35,7 +35,7 @@
numberOfClosingTags = len(closingTagList)

filteredClosingTagList = list(
map(lambda str: re.sub('/', '', str), closingTagList)
map(lambda tag: re.sub('/', '', tag), closingTagList)
)

if numberOfOpeningTags == numberOfClosingTags:
Expand Down

0 comments on commit 75f04da

Please sign in to comment.