mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
...
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user