[Zope-Checkins] CVS: Zope2 - HTTPResponse.py:1.31

Andreas Jung andreas@dhcp165.digicool.com
Tue, 24 Apr 2001 10:54:26 -0400


Update of /cvs-repository/Zope2/ZServer
In directory yetix:/work/sandboxes/Zope2/ZServer

Modified Files:
	HTTPResponse.py 
Log Message:
regex free



--- Updated File HTTPResponse.py in package Zope2 --
--- HTTPResponse.py	2001/04/05 23:49:13	1.30
+++ HTTPResponse.py	2001/04/24 14:53:26	1.31
@@ -89,7 +89,7 @@
 and logging duties.
 
 """
-import time, regex, string, sys, tempfile
+import time, re, string, sys, tempfile
 from cStringIO import StringIO
 import thread
 from ZPublisher.HTTPResponse import HTTPResponse
@@ -123,7 +123,7 @@
     _chunking=0
 
     def __str__(self,
-                html_search=regex.compile('<html>',regex.casefold).search,
+                html_search=re.compile('<html>',re.I).search,
                 ):
         if self._wrote:
             if self._chunking: