From 75c118cf7675e6f19cbb80bc16e92740676c7f4b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 3 Jun 2024 22:03:26 +0200 Subject: Adding upstream version 3.0.27. Signed-off-by: Daniel Baumann --- ptpython/prompt_style.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ptpython/prompt_style.py') diff --git a/ptpython/prompt_style.py b/ptpython/prompt_style.py index 96b738f..465c3db 100644 --- a/ptpython/prompt_style.py +++ b/ptpython/prompt_style.py @@ -48,7 +48,7 @@ class IPythonPrompt(PromptStyle): def in_prompt(self) -> AnyFormattedText: return [ ("class:in", "In ["), - ("class:in.number", "%s" % self.python_input.current_statement_index), + ("class:in.number", f"{self.python_input.current_statement_index}"), ("class:in", "]: "), ] @@ -58,7 +58,7 @@ class IPythonPrompt(PromptStyle): def out_prompt(self) -> AnyFormattedText: return [ ("class:out", "Out["), - ("class:out.number", "%s" % self.python_input.current_statement_index), + ("class:out.number", f"{self.python_input.current_statement_index}"), ("class:out", "]:"), ("", " "), ] -- cgit v1.2.3