Skip to content

Commit 7f4abb2

Browse files
committed
Use list literal
1 parent 0ac6f13 commit 7f4abb2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,11 +2015,10 @@ def key_help_text(self):
20152015
"yank from buffer",
20162016
"cut to buffer",
20172017
)
2018-
pairs = []
2019-
pairs.append(
2020-
["complete history suggestion", "right arrow at end of line"]
2021-
)
2022-
pairs.append(["previous match with current line", "up arrow"])
2018+
pairs = [
2019+
["complete history suggestion", "right arrow at end of line"],
2020+
["previous match with current line", "up arrow"],
2021+
]
20232022
for functionality, key in (
20242023
(attr[:-4].replace("_", " "), getattr(self.config, attr))
20252024
for attr in self.config.__dict__

0 commit comments

Comments
 (0)