From: Serhiy Storchaka Date: Wed, 15 Sep 2021 14:08:48 +0000 (+0300) Subject: bpo-44786: Fix a warning in RE in c-analyzer (GH-28351) X-Git-Tag: v3.11.0a1~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a9ef5798525bbb39a16c8af5c435b97352ee027;p=thirdparty%2FPython%2Fcpython.git bpo-44786: Fix a warning in RE in c-analyzer (GH-28351) --- diff --git a/Misc/NEWS.d/next/Tools-Demos/2021-09-14-11-44-26.bpo-44786.DU0LC0.rst b/Misc/NEWS.d/next/Tools-Demos/2021-09-14-11-44-26.bpo-44786.DU0LC0.rst new file mode 100644 index 000000000000..96ebf2c33cc5 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/2021-09-14-11-44-26.bpo-44786.DU0LC0.rst @@ -0,0 +1 @@ +Fix a warning in regular expression in the c-analyzer script. diff --git a/Tools/c-analyzer/c_common/tables.py b/Tools/c-analyzer/c_common/tables.py index 85b501925715..130be6beba5f 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\]] ) #