summaryrefslogtreecommitdiff
path: root/Lib/csv.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-09-02 16:01:07 +0000
committerFred Drake <fdrake@acm.org>2003-09-02 16:01:07 +0000
commit6f7b213dda6f5ebb55ea7ab6d45879530035ad58 (patch)
treed3d1e93a732a75c0296830bf29848bdec0bb4884 /Lib/csv.py
parentf19f8610faa2119b14b9af72415f450e3ab7a1d3 (diff)
downloadcpython-git-6f7b213dda6f5ebb55ea7ab6d45879530035ad58.tar.gz
use the long names for re compilation options; this makes it easier to
figure out what the code is doing
Diffstat (limited to 'Lib/csv.py')
-rw-r--r--Lib/csv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/csv.py b/Lib/csv.py
index 37b9e16c31..fcb8a8fedc 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