diff options
author | Fred Drake <fdrake@acm.org> | 2003-09-02 16:01:07 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-09-02 16:01:07 +0000 |
commit | 32ea09ea6cece939c900d93362a4100068a4ff63 (patch) | |
tree | 1f8621cc6c474da141d3d7a0a68d06e96f8dda38 /Lib/csv.py | |
parent | a329b6f504ade40381adfde9a624810a7a514859 (diff) | |
download | cpython-32ea09ea6cece939c900d93362a4100068a4ff63.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.py | 2 |
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 |