minor update

This commit is contained in:
Miroslav Stampar 2010-11-06 08:31:11 +00:00
parent 1a708cf12d
commit 3619fc5127
3 changed files with 2 additions and 12 deletions

View File

@ -17,7 +17,6 @@ from lib.core.agent import agent
from lib.core.common import beep
from lib.core.common import getFilteredPageContent
from lib.core.common import getUnicode
from lib.core.common import preparePageForLineComparison
from lib.core.common import randomInt
from lib.core.common import randomStr
from lib.core.common import readInput

View File

@ -1093,14 +1093,6 @@ def sanitizeAsciiString(subject):
else:
return None
def preparePageForLineComparison(page):
retVal = page
if isinstance(page, basestring):
return page.replace("><", ">\n<").replace("<br>", "\n").splitlines()
return retVal
def getFilteredPageContent(page):
retVal = page

View File

@ -10,7 +10,6 @@ See the file 'doc/COPYING' for copying permission
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
@ -98,9 +97,9 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
if getSeqMatcher:
return ratio
# In case of an DBMS error page return False
# In case of an DBMS error page return None
elif wasLastRequestError():
return False
return None
elif ratio == 1:
return True