usage of compiled regexes in case of dynamic markings and other refactoring

This commit is contained in:
Miroslav Stampar
2010-12-04 13:23:28 +00:00
parent 0fc7a8f9e8
commit eeb199375b
3 changed files with 4 additions and 5 deletions

View File

@@ -62,6 +62,7 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
# Dynamic content lines to be excluded before comparison
if not kb.nullConnection and not conf.longestCommon:
page = removeDynamicContent(page)
conf.seqMatcher.set_seq1(removeDynamicContent(kb.pageTemplate))
if not pageLength:
pageLength = len(page)