Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEPS: Lazy import defusedxml only when necessary #12362

Merged
merged 1 commit into from
May 11, 2024

Commits on May 8, 2024

  1. 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 sphinx-doc#12339.
    mgorny committed May 8, 2024
    Configuration menu
    Copy the full SHA
    12f63b3 View commit details
    Browse the repository at this point in the history