diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-01-21 16:47:54 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-01-21 16:47:54 +0100 |
| commit | cb11cc4465cc1d8c62fbd92c80c944a864ae233c (patch) | |
| tree | 83f4bf4b9bc3aa65c3c414b9a4dd265611b39c0f /bindgen | |
| parent | 0925b88b80c28b572b01515e6314b38b88be43b1 (diff) | |
gen_util.py: fix a regular expression warning on Windows
Diffstat (limited to 'bindgen')
| -rw-r--r-- | bindgen/gen_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindgen/gen_util.py b/bindgen/gen_util.py index a76f4b2b..d5b7e96a 100644 --- a/bindgen/gen_util.py +++ b/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 |