[Zope-Checkins] CVS: Zope2 - RDB.py:1.29.44.1

Andreas Jung andreas@dhcp165.digicool.com
Wed, 18 Apr 2001 15:30:07 -0400


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

Modified Files:
      Tag: ajung-2_4-ts_regex-exterminiation-branch
	RDB.py 
Log Message:
regex free



--- Updated File RDB.py in package Zope2 --
--- RDB.py	2000/12/21 17:12:00	1.29
+++ RDB.py	2001/04/18 19:30:06	1.29.44.1
@@ -88,8 +88,7 @@
 $Id$'''
 __version__='$Revision$'[11:-2]
 
-import regex, regsub
-from string import split, strip, lower, upper, atof, atoi, atol, find, join
+from string import split, strip, lower, upper, atof, atoi, atol, find, join,find
 import DateTime
 from Missing import MV
 from array import array
@@ -136,8 +135,8 @@
         self._parent=parent
         if zbrains is None: zbrains=NoBrains
 
-        comment_pattern=regex.compile('#')
-        while line and comment_pattern.match(line) >= 0: line=readline()
+        
+        while line and line.find('#') != -1 : line=readline()
 
         line=line[:-1]
         if line and line[-1:] in '\r\n': line=line[:-1]