From 75f04da4b8713e78a5f16c2c3b47dcff4abeb998 Mon Sep 17 00:00:00 2001 From: "Ryan P.C. McQuen" Date: Mon, 18 Sep 2017 23:14:15 -0700 Subject: [PATCH] Remove some extraneous code. Signed-off-by: Ryan P.C. McQuen --- unclosedTagFinder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unclosedTagFinder.py b/unclosedTagFinder.py index c4061fa..6062e57 100755 --- a/unclosedTagFinder.py +++ b/unclosedTagFinder.py @@ -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( @@ -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: