parent
b297c27e09
commit
4b3d29ecc3
1 changed files with 1 additions and 1 deletions
|
|
@ -488,7 +488,7 @@ def set_extra(self, extra: str) -> None:
|
|||
|
||||
def replace_control_codes(text: str) -> str:
|
||||
# Replace all control codes other than tab, newline and space with their graphical counterparts
|
||||
def sub(m: re.Match[str]) -> str:
|
||||
def sub(m: 're.Match[str]') -> str:
|
||||
c = ord(m.group())
|
||||
if c < 0x20:
|
||||
return chr(0x2400 + c)
|
||||
|
|
|
|||
Loading…
Reference in a new issue