This commit is contained in:
Kovid Goyal 2022-11-17 20:25:35 +05:30
parent e5e8cc72c6
commit 36631ddc49
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -45,7 +45,7 @@ def get_data(fname: str, folder: str = 'UCD') -> Iterable[str]:
yield line
def unicode_version():
def unicode_version() -> Tuple[int, int, int]:
for line in get_data("ReadMe.txt"):
m = re.search(r'Version\s+(\d+)\.(\d+)\.(\d+)', line)
if m is not None: