From e5681e4d7056dbe561127dedf76fb2cd9d16fc00 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 31 May 2016 11:33:19 -0700 Subject: genxml: mark re strings as raw This is a correctness issue. Signed-off-by: Dylan Baker Reviewed-by: Jason Ekstrand cc: 12.0 --- src/intel/genxml/gen_pack_header.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/intel/genxml/gen_pack_header.py') 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 -- cgit v1.2.3