[Zope-Checkins] CVS: Zope2 - TextIndex.py:1.28.8.2 UnTextIndex.py:1.46.8.2

Andreas Jung andreas@dhcp165.digicool.com
Mon, 23 Apr 2001 13:09:04 -0400


Update of /cvs-repository/Zope2/lib/python/SearchIndex
In directory yetix:/work/sandboxes/ajung-2_4-ts_regex-exterminiation-branch/lib/python/SearchIndex

Modified Files:
      Tag: ajung-2_4-ts_regex-exterminiation-branch
	TextIndex.py UnTextIndex.py 
Log Message:
added r".." notation for regexes



--- Updated File TextIndex.py in package Zope2 --
--- TextIndex.py	2001/04/18 14:35:07	1.28.8.1
+++ TextIndex.py	2001/04/23 17:09:02	1.28.8.2
@@ -515,7 +515,7 @@
     return q
 
 
-def parens(s, parens_re = re.compile('(\|)').search):
+def parens(s, parens_re = re.compile(r'(\|)').search):
 
     index=open_index=paren_count = 0
 

--- Updated File UnTextIndex.py in package Zope2 --
--- UnTextIndex.py	2001/04/18 14:30:33	1.46.8.1
+++ UnTextIndex.py	2001/04/23 17:09:03	1.46.8.2
@@ -700,7 +700,7 @@
     return q
 
 
-def parens(s, parens_re=re.compile('(\|)').search):
+def parens(s, parens_re=re.compile(r'(\|)').search):
 
     index = open_index = paren_count = 0