diff options
author | Dylan Baker <[email protected]> | 2016-05-31 11:33:19 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-31 15:09:06 -0700 |
commit | e5681e4d7056dbe561127dedf76fb2cd9d16fc00 (patch) | |
tree | 7b77e6e50c21916ddee0dcc8aeadd0722853daa3 | |
parent | de2e9da2e9b0bfeca535f318c20df93b3a0fd08b (diff) |
genxml: mark re strings as raw
This is a correctness issue.
Signed-off-by: Dylan Baker <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
cc: 12.0 <[email protected]>
-rw-r--r-- | src/intel/genxml/gen_pack_header.py | 4 |
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 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 |