Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
defusedxml
import into the function using it
Import `defusedxml` inside the `etree_parse()` function rather than in global scope of `sphinx.testing.util`. This makes it possible for reverse dependencies (such as `breathe`) to use this module without adding an unnecessary transitive dependency on `defusedxml` when it's not actually used. See also issue #12339.
- Loading branch information