summaryrefslogtreecommitdiffstats
path: root/examples/prompts/system-clipboard-integration.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xexamples/prompts/system-clipboard-integration.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/prompts/system-clipboard-integration.py b/examples/prompts/system-clipboard-integration.py
index f605921..0b9136b 100755
--- a/examples/prompts/system-clipboard-integration.py
+++ b/examples/prompts/system-clipboard-integration.py
@@ -3,6 +3,7 @@
Demonstration of a custom clipboard class.
This requires the 'pyperclip' library to be installed.
"""
+
from prompt_toolkit import prompt
from prompt_toolkit.clipboard.pyperclip import PyperclipClipboard
@@ -14,4 +15,4 @@ if __name__ == "__main__":
print("")
answer = prompt("Give me some input: ", clipboard=PyperclipClipboard())
- print("You said: %s" % answer)
+ print(f"You said: {answer}")