summaryrefslogtreecommitdiffstats
path: root/examples/prompts/inputhook.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xexamples/prompts/inputhook.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/prompts/inputhook.py b/examples/prompts/inputhook.py
index 7cbfe18..a776246 100755
--- a/examples/prompts/inputhook.py
+++ b/examples/prompts/inputhook.py
@@ -11,6 +11,7 @@ There are two ways to know when input is ready. One way is to poll
`InputHookContext.input_is_ready()`. Another way is to check for
`InputHookContext.fileno()` to be ready. In this example we do the latter.
"""
+
import gobject
import gtk
from pygments.lexers.python import PythonLexer
@@ -76,7 +77,7 @@ def main():
"Python >>> ", inputhook=inputhook, lexer=PygmentsLexer(PythonLexer)
)
result = session.prompt()
- print("You said: %s" % result)
+ print(f"You said: {result}")
if __name__ == "__main__":