From c32debefef6670e09f2d439b13b64e784d4d9c80 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Fri, 30 Aug 2019 21:53:16 +0300 Subject: [PATCH] [colorschemes] kitty.py Python2 compatibility --- colorschemes/kitty.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/colorschemes/kitty.py b/colorschemes/kitty.py index e20011c..dc405ee 100755 --- a/colorschemes/kitty.py +++ b/colorschemes/kitty.py @@ -7,15 +7,15 @@ def print_color(key_name, color): print("{} {}".format(key_name, color)) -print("background", theme.bg) -print("foreground", theme.fg) -print("cursor", theme.cursor_bg) -print("cursor_text_color", theme.cursor_fg) -print("selection_background", theme.selection_bg) -print("selection_foreground", theme.selection_fg) +print_color("background", theme.bg) +print_color("foreground", theme.fg) +print_color("cursor", theme.cursor_bg) +print_color("cursor_text_color", theme.cursor_fg) +print_color("selection_background", theme.selection_bg) +print_color("selection_foreground", theme.selection_fg) for index, color in enumerate(theme.ansi_colors): - print("color" + str(index), color) -print("url_color", theme.link_color) -print("active_border_color", theme.ansi_colors[2]) -print("inactive_border_color", theme.ansi_colors[8]) -print("bell_border_color", theme.ansi_colors[1]) + print_color("color" + str(index), color) +print_color("url_color", theme.link_color) +print_color("active_border_color", theme.ansi_colors[2]) +print_color("inactive_border_color", theme.ansi_colors[8]) +print_color("bell_border_color", theme.ansi_colors[1])