style: Apply linter formatting to redact-cast.py script

This commit is contained in:
Paul Gauthier (aider) 2025-03-12 13:25:08 -07:00
parent f4880e2ef3
commit 3a837c472e

View file

@ -8,11 +8,12 @@ import sys
SPEEDUP = 1.25
# Regular expression to match ANSI escape sequences
ANSI_ESCAPE_PATTERN = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\([0-9A-Z=])')
ANSI_ESCAPE_PATTERN = re.compile(r"\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\([0-9A-Z=])")
def strip_ansi(text):
"""Remove ANSI escape sequences from text"""
return ANSI_ESCAPE_PATTERN.sub('', text)
return ANSI_ESCAPE_PATTERN.sub("", text)
def process_file(input_path, output_path):