style: run pre-commit hooks

Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
Xuehai Pan 2022-07-19 15:33:33 +08:00
parent daff4e22af
commit dd98378f2e
2 changed files with 6 additions and 6 deletions

View file

@ -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()}

View file

@ -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))