Skip to content

Commit

Permalink
ignore security alert - consider using safer ast.literal_eval
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Apr 3, 2024
1 parent a3125d3 commit d387432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/gui_core/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _createMenuItem(
):
menuItem.Enable(False)

rhandler = eval("self.class_handler." + handler)
rhandler = eval("self.class_handler." + handler) # nosec B602

Check warning

Code scanning / Bandit

Use of possibly insecure function - consider using safer ast.literal_eval. Warning

Use of possibly insecure function - consider using safer ast.literal_eval.
self.parent.Bind(wx.EVT_MENU, rhandler, menuItem)

def GetData(self):
Expand Down

0 comments on commit d387432

Please sign in to comment.