From 28929f1ec113d94ee0c4495cdcc6ef2ab6c6ddf8 Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Wed, 21 Aug 2024 10:22:26 +0200 Subject: [PATCH 1/2] [PY312] Fix SyntaxWarning in conddb --- CondCore/Utilities/scripts/conddb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CondCore/Utilities/scripts/conddb b/CondCore/Utilities/scripts/conddb index 5b33496db1938..e8b9af4f56787 100755 --- a/CondCore/Utilities/scripts/conddb +++ b/CondCore/Utilities/scripts/conddb @@ -411,7 +411,7 @@ def _strip_colors(args, string): if args.nocolors: return string - return re.sub('\x1b\[[;\d]*[A-Za-z]', '', string) + return re.sub('\x1b\\[[;\d]*[A-Za-z]', '', string) def _ljust_colors(args, string, width, fillchar=' '): From c70d1e2539878b1dcd5b44fad5513a6e6eace12a Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Tue, 27 Aug 2024 12:23:50 +0200 Subject: [PATCH 2/2] Fix one more escape sequence --- CondCore/Utilities/scripts/conddb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CondCore/Utilities/scripts/conddb b/CondCore/Utilities/scripts/conddb index e8b9af4f56787..6e6c92edf0852 100755 --- a/CondCore/Utilities/scripts/conddb +++ b/CondCore/Utilities/scripts/conddb @@ -411,7 +411,7 @@ def _strip_colors(args, string): if args.nocolors: return string - return re.sub('\x1b\\[[;\d]*[A-Za-z]', '', string) + return re.sub('\x1b\\[[;\\d]*[A-Za-z]', '', string) def _ljust_colors(args, string, width, fillchar=' '):