A PyQT GUI application for converting InfoLease report outputs into Excel files. Handles parsing and summarizing. Learns where files are meant to be store and compiles monthly and yearly summaries.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
InfoLeaseExtract/venv/Lib/site-packages/openpyxl/xml/__init__.py

42 lines
1016 B

# Copyright (c) 2010-2022 openpyxl
"""Collection of XML resources compatible across different Python versions"""
import os
def lxml_available():
try:
from lxml.etree import LXML_VERSION
LXML = LXML_VERSION >= (3, 3, 1, 0)
if not LXML:
import warnings
warnings.warn("The installed version of lxml is too old to be used with openpyxl")
return False # we have it, but too old
else:
return True # we have it, and recent enough
except ImportError:
return False # we don't even have it
def lxml_env_set():
return os.environ.get("OPENPYXL_LXML", "True") == "True"
LXML = lxml_available() and lxml_env_set()
def defusedxml_available():
try:
import defusedxml # noqa
except ImportError:
return False
else:
return True
def defusedxml_env_set():
return os.environ.get("OPENPYXL_DEFUSEDXML", "True") == "True"
DEFUSEDXML = defusedxml_available() and defusedxml_env_set()