diff options
author | Fred Drake <fdrake@acm.org> | 2003-09-02 16:01:07 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-09-02 16:01:07 (GMT) |
commit | 6f7b213dda6f5ebb55ea7ab6d45879530035ad58 (patch) | |
tree | d3d1e93a732a75c0296830bf29848bdec0bb4884 | |
parent | f19f8610faa2119b14b9af72415f450e3ab7a1d3 (diff) | |
download | cpython-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |