Minor style update

This commit is contained in:
Miroslav Stampar 2012-08-20 11:28:41 +02:00
parent 76338add17
commit e0d9fa8666
2 changed files with 3 additions and 4 deletions

View File

@ -508,18 +508,18 @@ def start():
if not conf.textOnly and kb.originalPage:
percent = (100.0 * len(getFilteredPageContent(kb.originalPage)) / len(kb.originalPage))
if kb.dynamicParameters:
if kb.dynamicMarkings:
errMsg += " You can give it a go with the switch '--text-only' "
errMsg += "if the target page has a low percentage "
errMsg += "of textual content (~%.2f%% of " % percent
errMsg += "page content is text)."
errMsg += "page content is text)"
elif percent < LOW_TEXT_PERCENT and not kb.errorIsNone:
errMsg += " Please retry with the switch '--text-only' "
errMsg += "(along with --technique=BU) as this case "
errMsg += "looks like a perfect candidate "
errMsg += "(low textual content along with inability "
errMsg += "of comparison engine to detect at least "
errMsg += "one dynamic parameter)."
errMsg += "one dynamic parameter)"
if kb.heuristicTest:
errMsg += " As heuristic test turned out positive you are "

View File

@ -1484,7 +1484,6 @@ def __setKnowledgeBaseAttributes(flushAll=True):
kb.docRoot = None
kb.dumpTable = None
kb.dynamicMarkings = []
kb.dynamicParameters = False
kb.endDetection = False
kb.explicitSettings = set()
kb.errorIsNone = True