Skip to content

Commit 1a9ef57

Browse files
bpo-44786: Fix a warning in RE in c-analyzer (GH-28351)
1 parent 11cdf2a commit 1a9ef57

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a warning in regular expression in the c-analyzer script.

Tools/c-analyzer/c_common/tables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ def build_table(specs, *, sep=' ', defaultwidth=None):
236236
_COLSPEC_RE = re.compile(textwrap.dedent(r'''
237237
^
238238
(?:
239-
[[]
239+
\[
240240
(
241241
(?: [^\s\]] [^\]]* )?
242242
[^\s\]]
243243
) # <label>
244-
[]]
244+
]
245245
)?
246246
( \w+ ) # <field>
247247
(?:

0 commit comments

Comments
 (0)