Skip to content

Commit

Permalink
Add filtering logic to use-defusedxml transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
drdavella committed Feb 29, 2024
1 parent 2d1d4e3 commit b115358
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core_codemods/use_defused_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def matching_functions(self) -> dict[str, str]:
return _matching_functions

def transform_module_impl(self, tree: cst.Module) -> cst.Module:
if not self.node_is_selected(tree):
return tree

visitor = DefusedXmlModifier(
self.context,
self.file_context,
Expand Down

0 comments on commit b115358

Please sign in to comment.