From 3899a060a38e14e5571416528605ac7ea606ef90 Mon Sep 17 00:00:00 2001 From: Letu Ren Date: Wed, 18 Dec 2024 05:27:10 +0800 Subject: [PATCH] Fix Syntax warning in ts summary.py --- modules/ts/misc/summary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ts/misc/summary.py b/modules/ts/misc/summary.py index 5874d37e72..89aa693752 100755 --- a/modules/ts/misc/summary.py +++ b/modules/ts/misc/summary.py @@ -37,8 +37,8 @@ import testlog_parser, sys, os, xml, glob, re from table_formatter import * from optparse import OptionParser -numeric_re = re.compile("(\d+)") -cvtype_re = re.compile("(8U|8S|16U|16S|32S|32F|64F)C(\d{1,3})") +numeric_re = re.compile(r"(\d+)") +cvtype_re = re.compile(r"(8U|8S|16U|16S|32S|32F|64F)C(\d{1,3})") cvtypes = { '8U': 0, '8S': 1, '16U': 2, '16S': 3, '32S': 4, '32F': 5, '64F': 6 } convert = lambda text: int(text) if text.isdigit() else text