bpo-44786: Fix a warning in RE in c-analyzer (GH-28351) (GH-28353)

(cherry picked from commit 1a9ef57985)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-09-15 09:43:25 -07:00 committed by GitHub
parent ececa53b7f
commit 89966f59c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1 @@
Fix a warning in regular expression in the c-analyzer script.

View file

@ -236,12 +236,12 @@ def build_table(specs, *, sep=' ', defaultwidth=None):
_COLSPEC_RE = re.compile(textwrap.dedent(r'''
^
(?:
[[]
\[
(
(?: [^\s\]] [^\]]* )?
[^\s\]]
) # <label>
[]]
]
)?
( \w+ ) # <field>
(?: