Merge branch 'codex/remove-unused-ceil-int' of https://github.com/hezhizhen/kitty

This commit is contained in:
Kovid Goyal 2026-11-09 18:37:42 +05:30
commit 57e0fa7f30
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -2,7 +2,6 @@
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import fcntl
import math
import os
import re
import string
@ -153,10 +152,6 @@ def suppress_error_logging() -> Generator[None, None, None]:
setattr(log_error, 'redirect', before)
def ceil_int(x: float) -> int:
return int(math.ceil(x))
def sanitize_title(x: str) -> str:
return re.sub(r'\s+', ' ', re.sub(r'[\0-\x19\x80-\x9f]', '', x))