mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-20 11:07:38 +03:00
Cleanup previous PR
This commit is contained in:
parent
43c0e0f586
commit
ffefd0f581
@ -7,14 +7,13 @@
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
from contextlib import contextmanager
|
||||
from datetime import date
|
||||
from functools import partial
|
||||
from functools import lru_cache, partial
|
||||
from html.entities import html5
|
||||
from itertools import groupby
|
||||
from operator import itemgetter
|
||||
from typing import (
|
||||
Callable, DefaultDict, Dict, FrozenSet, Generator, Iterable, List,
|
||||
Optional, Set, Tuple, Union
|
||||
Callable, DefaultDict, Dict, FrozenSet, Generator, Iterable, List, Optional, Set,
|
||||
Tuple, Union,
|
||||
)
|
||||
from urllib.request import urlopen
|
||||
|
||||
@ -45,6 +44,7 @@ def get_data(fname: str, folder: str = 'UCD') -> Iterable[str]:
|
||||
yield line
|
||||
|
||||
|
||||
@lru_cache(maxsize=2)
|
||||
def unicode_version() -> Tuple[int, int, int]:
|
||||
for line in get_data("ReadMe.txt"):
|
||||
m = re.search(r'Version\s+(\d+)\.(\d+)\.(\d+)', line)
|
||||
|
Loading…
Reference in New Issue
Block a user