use the long names for re compilation options; this makes it easier to

figure out what the code is doing
This commit is contained in:
Fred Drake 2003-09-02 16:01:07 +00:00
parent f19f8610fa
commit 6f7b213dda
1 changed files with 1 additions and 1 deletions

View File

@ -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