[Zope-Checkins] CVS: Zope2 - client.py:1.15.4.3 hookable_PUT.py:1.2.54.1

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


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

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



--- Updated File client.py in package Zope2 --
--- client.py	2001/04/20 12:42:04	1.15.4.2
+++ client.py	2001/04/23 17:06:26	1.15.4.3
@@ -158,7 +158,7 @@
             return self.__snd_request('POST', self.uri, headers, body)
 
     def put(self, file='', content_type='', content_enc='',
-            isbin=re.compile('[\0-\6\177-\277]').search,
+            isbin=re.compile(r'[\0-\6\177-\277]').search,
             **kw):
         headers=self.__get_headers(kw)
         filetype=type(file)
@@ -425,7 +425,7 @@
 ##############################################################################
 # Implementation details below here
 
-urlreg=re.compile('http://([^:/]+)(:[0-9]+)?(/.+)?', re.I)
+urlreg=re.compile(r'http://([^:/]+)(:[0-9]+)?(/.+)?', re.I)
 
 def marshal_string(name, val):
     return '%s=%s' % (name, quote(str(val)))

--- Updated File hookable_PUT.py in package Zope2 --
--- hookable_PUT.py	2000/12/07 23:57:20	1.2
+++ hookable_PUT.py	2001/04/23 17:06:27	1.2.54.1
@@ -1,7 +1,7 @@
 #   Implement the "hookable PUT" hook.
 import re, OFS.DTMLMethod
 
-TEXT_PATTERN = re.compile( '^text/.*$' )
+TEXT_PATTERN = re.compile( r'^text/.*$' )
 
 def PUT_factory( self, name, typ, body ):
     """