code refactoring

This commit is contained in:
Miroslav Stampar
2010-10-25 14:06:56 +00:00
parent 9c94a233a1
commit 24c5d7b313
4 changed files with 16 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ import re
from lib.core.common import getFilteredPageContent
from lib.core.common import preparePageForLineComparison
from lib.core.common import wasLastRequestError
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
@@ -94,7 +95,7 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
return ratio
# In case of an DBMS error page return False
elif conf.errorComparison and kb.lastErrorPage and kb.lastErrorPage[0]==kb.lastRequestUID:
elif wasLastRequestError():
return False
# If the url is not stable it returns sequence matcher between the