diff options
Diffstat (limited to 'examples/gevent-get-input.py')
-rwxr-xr-x | examples/gevent-get-input.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/gevent-get-input.py b/examples/gevent-get-input.py index ecb89b4..0a0f016 100755 --- a/examples/gevent-get-input.py +++ b/examples/gevent-get-input.py @@ -3,6 +3,7 @@ For testing: test to make sure that everything still works when gevent monkey patches are applied. """ + from gevent.monkey import patch_all from prompt_toolkit.eventloop.defaults import create_event_loop @@ -21,4 +22,4 @@ if __name__ == "__main__": # Ask for input. session = PromptSession("Give me some input: ", loop=eventloop) answer = session.prompt() - print("You said: %s" % answer) + print(f"You said: {answer}") |