浏览代码

gen_util.py: fix a regular expression warning on Windows

Andre Weissflog 6 月之前
父节点
当前提交
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