Remove deprecation warning from defusedxml

Issue #1267 resolved
Álvaro Justen created an issue

defusedxml.lxml will be removed in the future and it's currently generating this warning:

/home/turicas/software/pyenv/versions/3.7.3/envs/rows/lib/python3.7/site-packages/openpyxl/xml/functions.py:31
  /home/turicas/software/pyenv/versions/3.7.3/envs/rows/lib/python3.7/site-packages/openpyxl/xml/functions.py:31: DeprecationWarning: defusedxml.lxml is no longer supported and will be removed in a future release.
    from defusedxml.lxml import fromstring as _fromstring, tostring

Comments (4)

  1. CharlieC

    Thanks for the note. Not quite sure how to proceed with this. We generally use the standard library for parsing most elements, for worksheets at least as this is faster and we could probably force this for everything if defusedxml is installed.

  2. Log in to comment