From 2bd6124737c71df248c6b3af1d201aab93acc428 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 30 Mar 2024 02:20:21 +0200 Subject: [PATCH] Fix Python warning fix_get_types.py:14: SyntaxWarning: invalid escape sequence '\(' --- src/fix_get_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fix_get_types.py b/src/fix_get_types.py index 208b9dfcd..64d8ce5a5 100755 --- a/src/fix_get_types.py +++ b/src/fix_get_types.py @@ -11,5 +11,5 @@ args = parser.parse_args () with open (args.input, 'r') as inp, open (args.output, 'w') as out: for l in inp.readlines (): l = re.sub ('_t_get_type', '_get_type', l) - l = re.sub ('_T \(', ' (', l) + l = re.sub (r'_T \(', ' (', l) out.write (l)