mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
style: run pre-commit hooks
Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
parent
daff4e22af
commit
dd98378f2e
2 changed files with 6 additions and 6 deletions
|
|
@ -24,11 +24,11 @@ VALUE2SYMBOL_UP = {
|
|||
(4, 0): '⡇', (4, 1): '⣇', (4, 2): '⣧', (4, 3): '⣷', (4, 4): '⣿',
|
||||
}
|
||||
VALUE2SYMBOL_DOWN = {
|
||||
(0, 0): " ", (0, 1): "⠈", (0, 2): "⠘", (0, 3): "⠸", (0, 4): "⢸",
|
||||
(1, 0): "⠁", (1, 1): "⠉", (1, 2): "⠙", (1, 3): "⠹", (1, 4): "⢹",
|
||||
(2, 0): "⠃", (2, 1): "⠋", (2, 2): "⠛", (2, 3): "⠻", (2, 4): "⢻",
|
||||
(3, 0): "⠇", (3, 1): "⠏", (3, 2): "⠟", (3, 3): "⠿", (3, 4): "⢿",
|
||||
(4, 0): "⡇", (4, 1): "⡏", (4, 2): "⡟", (4, 3): "⡿", (4, 4): "⣿"
|
||||
(0, 0): ' ', (0, 1): '⠈', (0, 2): '⠘', (0, 3): '⠸', (0, 4): '⢸',
|
||||
(1, 0): '⠁', (1, 1): '⠉', (1, 2): '⠙', (1, 3): '⠹', (1, 4): '⢹',
|
||||
(2, 0): '⠃', (2, 1): '⠋', (2, 2): '⠛', (2, 3): '⠻', (2, 4): '⢻',
|
||||
(3, 0): '⠇', (3, 1): '⠏', (3, 2): '⠟', (3, 3): '⠿', (3, 4): '⢿',
|
||||
(4, 0): '⡇', (4, 1): '⡏', (4, 2): '⡟', (4, 3): '⡿', (4, 4): '⣿'
|
||||
}
|
||||
# fmt: on
|
||||
SYMBOL2VALUE_UP = {v: k for k, v in VALUE2SYMBOL_UP.items()}
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ class KeyMaps(dict):
|
|||
pointer = pointer[key]
|
||||
except KeyError as e:
|
||||
raise KeyError(
|
||||
"Tried to copy the keybinding `%s'," " but it was not found." % source
|
||||
"Tried to copy the keybinding `%s', but it was not found." % source
|
||||
) from e
|
||||
self.bind(context, target, copy.deepcopy(pointer))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue