[Python-checkins] python/dist/src/Lib csv.py,1.7,1.8
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Tue Sep 2 10:01:09 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv15336
Modified Files:
csv.py
Log Message:
use the long names for re compilation options; this makes it easier to
figure out what the code is doing
Index: csv.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/csv.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** csv.py 12 Jun 2003 04:05:00 -0000 1.7
--- csv.py 2 Sep 2003 16:01:07 -0000 1.8
***************
*** 208,212 ****
'(?P<delim>>[^\w\n"\'])(?P<space> ?)(?P<quote>["\']).*?(?P=quote)(?:$|\n)', # ,".*?"
'(?:^|\n)(?P<quote>["\']).*?(?P=quote)(?:$|\n)'): # ".*?" (no delim, no space)
! regexp = re.compile(restr, re.S | re.M)
matches = regexp.findall(data)
if matches:
--- 208,212 ----
'(?P<delim>>[^\w\n"\'])(?P<space> ?)(?P<quote>["\']).*?(?P=quote)(?:$|\n)', # ,".*?"
'(?:^|\n)(?P<quote>["\']).*?(?P=quote)(?:$|\n)'): # ".*?" (no delim, no space)
! regexp = re.compile(restr, re.DOTALL | re.MULTILINE)
matches = regexp.findall(data)
if matches:
More information about the Python-checkins
mailing list