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

Skip to content

Commit e0d9fa8

Browse files
committed
Minor style update
1 parent 76338ad commit e0d9fa8

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

lib/controller/controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,18 +508,18 @@ def start():
508508
if not conf.textOnly and kb.originalPage:
509509
percent = (100.0 * len(getFilteredPageContent(kb.originalPage)) / len(kb.originalPage))
510510

511-
if kb.dynamicParameters:
511+
if kb.dynamicMarkings:
512512
errMsg += " You can give it a go with the switch '--text-only' "
513513
errMsg += "if the target page has a low percentage "
514514
errMsg += "of textual content (~%.2f%% of " % percent
515-
errMsg += "page content is text)."
515+
errMsg += "page content is text)"
516516
elif percent < LOW_TEXT_PERCENT and not kb.errorIsNone:
517517
errMsg += " Please retry with the switch '--text-only' "
518518
errMsg += "(along with --technique=BU) as this case "
519519
errMsg += "looks like a perfect candidate "
520520
errMsg += "(low textual content along with inability "
521521
errMsg += "of comparison engine to detect at least "
522-
errMsg += "one dynamic parameter)."
522+
errMsg += "one dynamic parameter)"
523523

524524
if kb.heuristicTest:
525525
errMsg += " As heuristic test turned out positive you are "

lib/core/option.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,6 @@ def __setKnowledgeBaseAttributes(flushAll=True):
14841484
kb.docRoot = None
14851485
kb.dumpTable = None
14861486
kb.dynamicMarkings = []
1487-
kb.dynamicParameters = False
14881487
kb.endDetection = False
14891488
kb.explicitSettings = set()
14901489
kb.errorIsNone = True

0 commit comments

Comments
 (0)