]> www.infradead.org Git - users/jedix/linux-maple.git/commit
verification/dot2: Improve dot parser robustness
authorGabriele Monaco <gmonaco@redhat.com>
Thu, 17 Oct 2024 06:42:39 +0000 (08:42 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 19 Nov 2024 13:57:13 +0000 (08:57 -0500)
commit571f8b3f866a6d990a50fe5c89fe0ea78784d70b
tree18c9f2d6aa3013036013846f902920bba5060fb9
parent4d8c1ba0790b4341a58e2042810a952c62df06e9
verification/dot2: Improve dot parser robustness

This patch makes the dot parser used by dot2c and dot2k slightly more
robust, namely:
* allows parsing files with the gv extension (GraphViz)
* correctly parses edges with any indentation
    * used to work only with a single character (e.g. '\t')
Additionally it fixes a couple of warnings reported by pylint such as
wrong indentation and comparison to False instead of `not ...`

Link: https://lore.kernel.org/20241017064238.41394-2-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/verification/dot2/automata.py