mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
bpo-44786: Fix a warning in RE in c-analyzer (GH-28351)
This commit is contained in:
parent
11cdf2a670
commit
1a9ef57985
2 changed files with 3 additions and 2 deletions
|
@ -0,0 +1 @@
|
||||||
|
Fix a warning in regular expression in the c-analyzer script.
|
|
@ -236,12 +236,12 @@ def build_table(specs, *, sep=' ', defaultwidth=None):
|
||||||
_COLSPEC_RE = re.compile(textwrap.dedent(r'''
|
_COLSPEC_RE = re.compile(textwrap.dedent(r'''
|
||||||
^
|
^
|
||||||
(?:
|
(?:
|
||||||
[[]
|
\[
|
||||||
(
|
(
|
||||||
(?: [^\s\]] [^\]]* )?
|
(?: [^\s\]] [^\]]* )?
|
||||||
[^\s\]]
|
[^\s\]]
|
||||||
) # <label>
|
) # <label>
|
||||||
[]]
|
]
|
||||||
)?
|
)?
|
||||||
( \w+ ) # <field>
|
( \w+ ) # <field>
|
||||||
(?:
|
(?:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue