summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-09-02 16:01:07 (GMT)
committerFred Drake <fdrake@acm.org>2003-09-02 16:01:07 (GMT)
commit6f7b213dda6f5ebb55ea7ab6d45879530035ad58 (patch)
treed3d1e93a732a75c0296830bf29848bdec0bb4884
parentf19f8610faa2119b14b9af72415f450e3ab7a1d3 (diff)
downloadcpython-6f7b213dda6f5ebb55ea7ab6d45879530035ad58.zip
cpython-6f7b213dda6f5ebb55ea7ab6d45879530035ad58.tar.gz
cpython-6f7b213dda6f5ebb55ea7ab6d45879530035ad58.tar.bz2
use the long names for re compilation options; this makes it easier to
figure out what the code is doing
-rw-r--r--Lib/csv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/csv.py b/Lib/csv.py
index 37b9e16..fcb8a8f 100644
--- a/Lib/csv.py
+++ b/Lib/csv.py
@@ -207,7 +207,7 @@ class Sniffer:
'(?:^|\n)(?P<quote>["\']).*?(?P=quote)(?P<delim>[^\w\n"\'])(?P<space> ?)', # ".*?",
'(?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)
+ regexp = re.compile(restr, re.DOTALL | re.MULTILINE)
matches = regexp.findall(data)
if matches:
break