Skip to content

Commit

Permalink
style: Fix C417 - Unnecessary map usage (rewrite using a list com…
Browse files Browse the repository at this point in the history
…prehension)
  • Loading branch information
echoix committed Oct 17, 2024
1 parent e5da199 commit b21251e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions gui/wxpython/wxgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,7 @@ def get_wxgui_components_app_names():
:return list: wxGUI components app names
"""
return list(
map(
lambda x: x["name"],
globalvar.RECENT_FILES_WXGUI_APP_NAMES.values(),
)
)
return [x["name"] for x in globalvar.RECENT_FILES_WXGUI_APP_NAMES.values()]


def printHelp():
Expand Down

0 comments on commit b21251e

Please sign in to comment.