2
0
Эх сурвалжийг харах

gen_util.py: fix a regular expression warning on Windows

Andre Weissflog 6 сар өмнө
parent
commit
cb11cc4465
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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