diff options
Diffstat (limited to 'examples/prompts/swap-light-and-dark-colors.py')
-rwxr-xr-x | examples/prompts/swap-light-and-dark-colors.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/prompts/swap-light-and-dark-colors.py b/examples/prompts/swap-light-and-dark-colors.py index e602449..4237d73 100755 --- a/examples/prompts/swap-light-and-dark-colors.py +++ b/examples/prompts/swap-light-and-dark-colors.py @@ -7,6 +7,7 @@ Notice that this doesn't swap foreground and background like "reverse" does. It turns light green into dark green and the other way around. Foreground and background are independent of each other. """ + from pygments.lexers.html import HtmlLexer from prompt_toolkit import prompt @@ -71,7 +72,7 @@ def main(): lexer=PygmentsLexer(HtmlLexer), swap_light_and_dark_colors=Condition(lambda: swapped[0]), ) - print("You said: %s" % text) + print(f"You said: {text}") if __name__ == "__main__": |