Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2358e34

Browse files
committed
Minor refactoring
1 parent 636e058 commit 2358e34

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

lib/parse/banner.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from xml.sax.handler import ContentHandler
1111

12-
from lib.core.common import checkFile
1312
from lib.core.common import Backend
1413
from lib.core.common import parseXmlFile
1514
from lib.core.common import sanitizeStr
@@ -104,8 +103,6 @@ def bannerParser(banner):
104103
if not xmlfile:
105104
return
106105

107-
checkFile(xmlfile)
108-
109106
if Backend.isDbms(DBMS.MSSQL):
110107
handler = MSSQLBannerHandler(banner, kb.bannerFp)
111108
parseXmlFile(xmlfile, handler)

lib/parse/headers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import itertools
99
import os
1010

11-
from lib.core.common import checkFile
1211
from lib.core.common import parseXmlFile
1312
from lib.core.data import kb
1413
from lib.core.data import paths
@@ -36,7 +35,6 @@ def headersParser(headers):
3635
for header in itertools.ifilter(lambda x: x in kb.headerPaths, headers):
3736
value = headers[header]
3837
xmlfile = kb.headerPaths[header]
39-
checkFile(xmlfile)
4038

4139
handler = FingerprintHandler(value, kb.headersFp)
4240

lib/parse/html.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from xml.sax.handler import ContentHandler
1111

12-
from lib.core.common import checkFile
1312
from lib.core.common import parseXmlFile
1413
from lib.core.data import kb
1514
from lib.core.data import paths
@@ -49,7 +48,6 @@ def htmlParser(page):
4948
"""
5049

5150
xmlfile = paths.ERRORS_XML
52-
checkFile(xmlfile)
5351
handler = HTMLHandler(page)
5452

5553
parseXmlFile(xmlfile, handler)

0 commit comments

Comments
 (0)