Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keymapviz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __legends(self, keymap):
def __json_format(self, json_, keymap):
legends = self.__legends(keymap)
ret = [[_.format(*legends) if isinstance(_, str) else _ for _ in __]
for __ in json_]
if isinstance(__, list) else __ for __ in json_]
with io.StringIO() as sio:
json.dump(ret, sio, indent=4)
ret_str = sio.getvalue()
Expand Down