mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-20 07:02:28 +00:00
Merge branch 'codex/remove-unused-ceil-int' of https://github.com/hezhizhen/kitty
This commit is contained in:
commit
57e0fa7f30
1 changed files with 0 additions and 5 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue