Skip to content

Commit b11669e

Browse files
committed
generator: fix python 3.12 warning
Citing from Python 3.12 release: "A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning (...) In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning." https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes
1 parent 03cbfde commit b11669e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def parse_param(cls, param_raw):
501501
assert('const' not in param_raw)
502502

503503
# normalize spaces
504-
param_raw = re.sub('\s+', ' ', param_raw)
504+
param_raw = re.sub(r'\s+', ' ', param_raw)
505505

506506
split_value = param_raw.split(' ')
507507
if len(split_value) > 1:

0 commit comments

Comments
 (0)