Skip to content

Commit

Permalink
Remove dead visit_exec method (#4943)
Browse files Browse the repository at this point in the history
* In Python 3 'exec' is just a 'Call' node
  • Loading branch information
cdce8p authored Sep 1, 2021
1 parent 6cd8193 commit ca9eddc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pylint/checkers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,11 +1386,6 @@ def visit_raise(self, node):
"""
self._check_unreachable(node)

@utils.check_messages("exec-used")
def visit_exec(self, node):
"""just print a warning on exec statements"""
self.add_message("exec-used", node=node)

def _check_misplaced_format_function(self, call_node):
if not isinstance(call_node.func, nodes.Attribute):
return
Expand Down

0 comments on commit ca9eddc

Please sign in to comment.