Browse Source

gen_util.py: fix a regular expression warning on Windows

Andre Weissflog 6 months ago
parent
commit
cb11cc4465
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bindgen/gen_util.py

+ 2 - 2
bindgen/gen_util.py

@@ -1,8 +1,8 @@
 # common utility functions for all bindings generators
 import re
 
-re_1d_array = re.compile("^(?:const )?\w*\s*\*?\[\d*\]$")
-re_2d_array = re.compile("^(?:const )?\w*\s*\*?\[\d*\]\[\d*\]$")
+re_1d_array = re.compile(r"^(?:const )?\w*\s*\*?\[\d*\]$")
+re_2d_array = re.compile(r"^(?:const )?\w*\s*\*?\[\d*\]\[\d*\]$")
 
 def is_1d_array_type(s):
     return re_1d_array.match(s) is not None