Skip to content

Commit

Permalink
Merge pull request #45760 from iarspider/iarspider-patch-20240821-1
Browse files Browse the repository at this point in the history
[PY312] Fix SyntaxWarning in conddb
  • Loading branch information
cmsbuild authored Sep 22, 2024
2 parents fa7970a + c70d1e2 commit 0477f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CondCore/Utilities/scripts/conddb
Original file line number Diff line number Diff line change
Expand Up @@ -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=' '):
Expand Down

0 comments on commit 0477f06

Please sign in to comment.