فهرست منبع

gen_util.py: fix a regular expression warning on Windows

Andre Weissflog 8 ماه پیش
والد
کامیت
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