summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-05-31 11:33:19 -0700
committerDylan Baker <dylan@pnwbakers.com>2016-05-31 14:45:24 -0700
commite27f8e6a0a497d2229ecf3ca0d4187f7db5994a1 (patch)
tree043a443cf76e71c35307fcce23058ab52f91b5dd
parentf6a4f23a67391798765b51753ecb4aaf1a56e5b6 (diff)
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>
-rw-r--r--src/intel/genxml/gen_pack_header.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py
index 2a7e265226..8cdb3e3d91 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