mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00: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
1 changed files with 1 additions and 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue