[Mesa-dev] [PATCH 3/7] genxml: mark re strings as raw

Dylan Baker dylan at pnwbakers.com
Tue May 31 21:30:26 UTC 2016


This is a correctness issue.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 src/intel/genxml/gen_pack_header.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py
index ddaa234..a0037cea 100644
--- a/src/intel/genxml/gen_pack_header.py
+++ b/src/intel/genxml/gen_pack_header.py
@@ -215,8 +215,8 @@ def num_from_str(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
-- 
2.8.3



More information about the mesa-dev mailing list