From: Fred Drake Date: Tue, 2 Sep 2003 16:01:07 +0000 (+0000) Subject: use the long names for re compilation options; this makes it easier to X-Git-Tag: v2.4a1~1661 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f7b213dda6f5ebb55ea7ab6d45879530035ad58;p=python use the long names for re compilation options; this makes it easier to figure out what the code is doing --- 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["\']).*?(?P=quote)(?P[^\w\n"\'])(?P ?)', # ".*?", '(?P>[^\w\n"\'])(?P ?)(?P["\']).*?(?P=quote)(?:$|\n)', # ,".*?" '(?:^|\n)(?P["\']).*?(?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