Fix failure on older python

This commit is contained in:
Kovid Goyal 2022-01-02 09:39:05 +05:30
parent fe91b74ba7
commit 37fe98fdec
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -54,7 +54,7 @@ def expandvars(val: str, env: Mapping[str, str] = {}, fallback_to_os_env: bool =
@run_once @run_once
def sgr_sanitizer_pat() -> re.Pattern[str]: def sgr_sanitizer_pat() -> 're.Pattern[str]':
return re.compile('\033\\[.*?m') return re.compile('\033\\[.*?m')