From: Dylan Baker Date: Tue, 31 May 2016 18:33:19 +0000 (-0700) Subject: genxml: mark re strings as raw X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5681e4d7056dbe561127dedf76fb2cd9d16fc00;p=mesa.git genxml: mark re strings as raw This is a correctness issue. Signed-off-by: Dylan Baker Reviewed-by: Jason Ekstrand cc: 12.0 --- diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py index 2a7e2652264..8cdb3e3d91d 100644 --- a/src/intel/genxml/gen_pack_header.py +++ b/src/intel/genxml/gen_pack_header.py @@ -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