Skip to content

Commit 28929f1

Browse files
committed
[PY312] Fix SyntaxWarning in conddb
1 parent d34e3af commit 28929f1

File tree

1 file changed

+1
-1
lines changed
  • CondCore/Utilities/scripts

1 file changed

+1
-1
lines changed

CondCore/Utilities/scripts/conddb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def _strip_colors(args, string):
411411
if args.nocolors:
412412
return string
413413

414-
return re.sub('\x1b\[[;\d]*[A-Za-z]', '', string)
414+
return re.sub('\x1b\\[[;\d]*[A-Za-z]', '', string)
415415

416416

417417
def _ljust_colors(args, string, width, fillchar=' '):

0 commit comments

Comments
 (0)