Skip to content

Commit 95c05bc

Browse files
committed
Remove useless use of str
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent a9faa96 commit 95c05bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __setitem__(self, key, value):
6969

7070
# fill dispatch with function keys
7171
for x in range(1, 13):
72-
cli_key_dispatch['F%s' % str(x)] = ('KEY_F(%s)' % str(x),)
72+
cli_key_dispatch['F%d' % x] = ('KEY_F(%d)' % x,)
7373

7474
for x in range(1, 13):
75-
urwid_key_dispatch['F%s' % str(x)] = 'f%s' % str(x)
75+
urwid_key_dispatch['F%d' % x] = 'f%d' % x

0 commit comments

Comments
 (0)