mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
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:
parent
f19f8610fa
commit
6f7b213dda
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user