diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 20:03:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 20:03:26 +0000 |
commit | 75c118cf7675e6f19cbb80bc16e92740676c7f4b (patch) | |
tree | b7840cfab1291920b36df87833c253051d4b54f0 /ptpython/history_browser.py | |
parent | Adding upstream version 3.0.26. (diff) | |
download | ptpython-upstream.tar.xz ptpython-upstream.zip |
Adding upstream version 3.0.27.upstream/3.0.27upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ptpython/history_browser.py')
-rw-r--r-- | ptpython/history_browser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ptpython/history_browser.py b/ptpython/history_browser.py index b667be1..ae0ac03 100644 --- a/ptpython/history_browser.py +++ b/ptpython/history_browser.py @@ -4,6 +4,7 @@ Utility to easily select lines from the history and execute them again. `create_history_application` creates an `Application` instance that runs will run as a sub application of the Repl/PythonInput. """ + from __future__ import annotations from functools import partial @@ -410,7 +411,7 @@ class HistoryMapping: if len(history_strings) > HISTORY_COUNT: history_lines[0] = ( - "# *** History has been truncated to %s lines ***" % HISTORY_COUNT + f"# *** History has been truncated to {HISTORY_COUNT} lines ***" ) self.history_lines = history_lines |