diff options
Diffstat (limited to 'examples/prompts/fancy-zsh-prompt.py')
-rwxr-xr-x | examples/prompts/fancy-zsh-prompt.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/prompts/fancy-zsh-prompt.py b/examples/prompts/fancy-zsh-prompt.py index 4761c08..cc31c1f 100755 --- a/examples/prompts/fancy-zsh-prompt.py +++ b/examples/prompts/fancy-zsh-prompt.py @@ -9,6 +9,7 @@ See: - https://github.com/xonsh/xonsh/issues/3356 - https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1111 """ + import datetime from prompt_toolkit import prompt @@ -72,7 +73,7 @@ def get_prompt() -> HTML: def main() -> None: while True: answer = prompt(get_prompt, style=style, refresh_interval=1) - print("You said: %s" % answer) + print(f"You said: {answer}") if __name__ == "__main__": |