mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
genxml: mark re strings as raw
This is a correctness issue.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
cc: 12.0 <mesa-stable@lists.freedesktop.org>
(cherry picked from commit e5681e4d70)
This commit is contained in:
parent
f73a68ec37
commit
aed6230269
1 changed files with 2 additions and 2 deletions
|
|
@ -211,8 +211,8 @@ def num_from_str(num_str):
|
|||
return int(num_str)
|
||||
|
||||
class Field(object):
|
||||
ufixed_pattern = re.compile("u(\d+)\.(\d+)")
|
||||
sfixed_pattern = re.compile("s(\d+)\.(\d+)")
|
||||
ufixed_pattern = re.compile(r"u(\d+)\.(\d+)")
|
||||
sfixed_pattern = re.compile(r"s(\d+)\.(\d+)")
|
||||
|
||||
def __init__(self, parser, attrs):
|
||||
self.parser = parser
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue