summaryrefslogtreecommitdiffstats
path: root/ptpython/prompt_style.py
diff options
context:
space:
mode:
Diffstat (limited to 'ptpython/prompt_style.py')
-rw-r--r--ptpython/prompt_style.py4
1 files changed, 2 insertions, 2 deletions
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", "]:"),
("", " "),
]