From 86a8b231f49804e07570a854ee5abaa7dca618b3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 4 Jul 2021 07:15:15 +0530 Subject: [PATCH] ... --- kitty/conf/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/conf/utils.py b/kitty/conf/utils.py index c6d601182..a2c59c8a6 100644 --- a/kitty/conf/utils.py +++ b/kitty/conf/utils.py @@ -96,8 +96,8 @@ def to_cmdline(x: str) -> List[str]: def python_string(text: str) -> str: - import ast - ans: str = ast.literal_eval("'''" + text.replace("'''", "'\\''") + "'''") + from ast import literal_eval + ans: str = literal_eval("'''" + text.replace("'''", "'\\''") + "'''") return ans