zink: Fix SyntaxWarning in zink_extensions script
authorSeppo Yli-Olli <seppo.yliolli@gmail.com>
Wed, 25 Oct 2023 11:55:47 +0000 (11:55 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 25 Oct 2023 15:03:43 +0000 (15:03 +0000)
commit6bbbdd5ceb7b803a844f820964e68cd92c057215
tree83e1241ca3baa9dbe361a02092afc53cab78e1d5
parent5a928f7563af8ed18617210b95208ea63c157e2f
zink: Fix SyntaxWarning in zink_extensions script

Fix regex pattern in zink_extensions to use proper escaping. While the original
code works, it relies on Python ignoring incorrect syntax and fallbacking to
passing through the escape. Current behaviour results in SyntaxWarning
whenever the code is used.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25881>
src/gallium/drivers/zink/zink_extensions.py