From e0d9fa8666e19071c543981301249c9e5350d4c0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 20 Aug 2012 11:28:41 +0200 Subject: [PATCH] Minor style update --- lib/controller/controller.py | 6 +++--- lib/core/option.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index dda2ef76c..5b2f59821 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -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 " diff --git a/lib/core/option.py b/lib/core/option.py index e7104429f..abb1f5a8b 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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