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>
This commit is contained in:
parent
de2e9da2e9
commit
e5681e4d70
|
@ -211,8 +211,8 @@ def num_from_str(num_str):
|
||||||
return int(num_str)
|
return int(num_str)
|
||||||
|
|
||||||
class Field(object):
|
class Field(object):
|
||||||
ufixed_pattern = re.compile("u(\d+)\.(\d+)")
|
ufixed_pattern = re.compile(r"u(\d+)\.(\d+)")
|
||||||
sfixed_pattern = re.compile("s(\d+)\.(\d+)")
|
sfixed_pattern = re.compile(r"s(\d+)\.(\d+)")
|
||||||
|
|
||||||
def __init__(self, parser, attrs):
|
def __init__(self, parser, attrs):
|
||||||
self.parser = parser
|
self.parser = parser
|
||||||
|
|
Loading…
Reference in New Issue