From 367627c331c361750bf73fe94ab7a69cf0ca9114 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 13 Nov 2011 19:09:13 +0000 Subject: [PATCH] minor fix for Python 2.6 --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 89b92ab50..a31945810 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1586,7 +1586,7 @@ def getFilteredPageContent(page, onlyText=True): # only if the page's charset has been successfully identified if isinstance(page, unicode): - retVal = re.sub(r"(?s)||%s" % (r"|<[^>]+>|\t|\n|\r" if onlyText else ""), " ", page, flags=re.I) + retVal = re.sub(r"(?si)||%s" % (r"|<[^>]+>|\t|\n|\r" if onlyText else ""), " ", page) while retVal.find(" ") != -1: retVal = retVal.replace(" ", " ")