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

import defusedxml.lxml.html #31

Closed
spaceone opened this issue Nov 20, 2018 · 1 comment
Closed

import defusedxml.lxml.html #31

spaceone opened this issue Nov 20, 2018 · 1 comment

Comments

@spaceone
Copy link

I get an error when trying to use lxml:

>>> import defusedxml.lxml.html
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named html
@tiran
Copy link
Owner

tiran commented Apr 14, 2019

Thanks for reporting the issue.

The defusedxml.lxml module was never designed as production code or fall wrapper around lxml. It's merely an example and proof of concept. I have deprecated the module in the upcoming 0.6 release and plan to remove it in 0.7.

Any security issue should be fixed in lxml instead.

@tiran tiran closed this as completed Apr 14, 2019
zanieb pushed a commit to astral-sh/ruff that referenced this issue Jul 11, 2023
## Summary

Add documentation to the `S3XX` rules (the `flake8-bandit`
['blacklists'](https://bandit.readthedocs.io/en/latest/plugins/index.html#plugin-id-groupings)
rule group). Related to #2646 .

Changed the `lxml`-based message to reflect that [`defusedxml` doesn't
support `lxml`](tiran/defusedxml#31).

## Test Plan

`python scripts/check_docs_formatted.py && mkdocs serve`
konstin pushed a commit to astral-sh/ruff that referenced this issue Jul 19, 2023
## Summary

Add documentation to the `S3XX` rules (the `flake8-bandit`
['blacklists'](https://bandit.readthedocs.io/en/latest/plugins/index.html#plugin-id-groupings)
rule group). Related to #2646 .

Changed the `lxml`-based message to reflect that [`defusedxml` doesn't
support `lxml`](tiran/defusedxml#31).

## Test Plan

`python scripts/check_docs_formatted.py && mkdocs serve`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants