mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
py3.8 support
This commit is contained in:
parent
56063b96fd
commit
e6ef2fceea
7 changed files with 8 additions and 7 deletions
|
|
@ -4,9 +4,10 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
from typing import List
|
||||
|
||||
|
||||
def main(args: list[str]=sys.argv) -> None:
|
||||
def main(args: List[str]=sys.argv) -> None:
|
||||
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.insert(0, os.getcwd())
|
||||
if len(args) == 1:
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ def graphics_parser() -> None:
|
|||
write_header(text, 'kitty/parse-graphics-command.h')
|
||||
|
||||
|
||||
def main(args: list[str]=sys.argv) -> None:
|
||||
def main(args: List[str]=sys.argv) -> None:
|
||||
graphics_parser()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ def patch_color_list(path: str, colors: List[str], name: str, spc: str = ' ')
|
|||
subprocess.check_call(['gofmt', '-w', path])
|
||||
|
||||
|
||||
def main(args: list[str]=sys.argv) -> None:
|
||||
def main(args: List[str]=sys.argv) -> None:
|
||||
from kitty.options.definition import definition
|
||||
write_output('kitty', definition)
|
||||
nullable_colors = []
|
||||
|
|
|
|||
|
|
@ -834,7 +834,7 @@ def generate_ssh_kitten_data() -> None:
|
|||
write_compressed_data(buf.getvalue(), d)
|
||||
|
||||
|
||||
def main(args: list[str]=sys.argv) -> None:
|
||||
def main(args: List[str]=sys.argv) -> None:
|
||||
with replace_if_needed('constants_generated.go') as f:
|
||||
f.write(generate_constants())
|
||||
with replace_if_needed('tools/utils/style/color-names_generated.go') as f:
|
||||
|
|
|
|||
|
|
@ -419,7 +419,7 @@ def generate_macos_mapping() -> None:
|
|||
patch_file('glfw/cocoa_window.m', 'functional to macu', '\n'.join(lines))
|
||||
|
||||
|
||||
def main(args: list[str]=sys.argv) -> None:
|
||||
def main(args: List[str]=sys.argv) -> None:
|
||||
generate_glfw_header()
|
||||
generate_xkb_mapping()
|
||||
generate_functional_table()
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ def generate_srgb_gamma(declaration: str = 'static const GLfloat srgb_lut[256] =
|
|||
return "\n".join(lines)
|
||||
|
||||
|
||||
def main(args: list[str]=sys.argv) -> None:
|
||||
def main(args: List[str]=sys.argv) -> None:
|
||||
c = generate_srgb_gamma()
|
||||
with open(os.path.join('kitty', 'srgb_gamma.h'), 'w') as f:
|
||||
f.write(f'{c}\n')
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ def gen_rowcolumn_diacritics() -> None:
|
|||
subprocess.check_call(['gofmt', '-w', '-s', go_file])
|
||||
|
||||
|
||||
def main(args: list[str]=sys.argv) -> None:
|
||||
def main(args: List[str]=sys.argv) -> None:
|
||||
parse_ucd()
|
||||
parse_prop_list()
|
||||
parse_emoji()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue