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:
Dylan Baker 2016-05-31 11:33:19 -07:00 committed by Jason Ekstrand
parent de2e9da2e9
commit e5681e4d70
1 changed files with 2 additions and 2 deletions

View File

@ -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