summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-15 14:08:48 (GMT)
committerGitHub <noreply@github.com>2021-09-15 14:08:48 (GMT)
commit1a9ef5798525bbb39a16c8af5c435b97352ee027 (patch)
tree26723d66f645f1a916c337b0bf3aa2d45ece93f9 /Tools
parent11cdf2a6702639571554cbf3f69f57d688564540 (diff)
downloadcpython-1a9ef5798525bbb39a16c8af5c435b97352ee027.zip
cpython-1a9ef5798525bbb39a16c8af5c435b97352ee027.tar.gz
cpython-1a9ef5798525bbb39a16c8af5c435b97352ee027.tar.bz2
bpo-44786: Fix a warning in RE in c-analyzer (GH-28351)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/c-analyzer/c_common/tables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/c-analyzer/c_common/tables.py b/Tools/c-analyzer/c_common/tables.py
index 85b5019..130be6b 100644
--- a/Tools/c-analyzer/c_common/tables.py
+++ b/Tools/c-analyzer/c_common/tables.py
@@ -236,12 +236,12 @@ def build_table(specs, *, sep=' ', defaultwidth=None):
_COLSPEC_RE = re.compile(textwrap.dedent(r'''
^
(?:
- [[]
+ \[
(
(?: [^\s\]] [^\]]* )?
[^\s\]]
) # <label>
- []]
+ ]
)?
( \w+ ) # <field>
(?: