mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-15 09:25:04 +00:00
e56303798c
Initial SickGear for Python 3.
19 lines
470 B
Python
19 lines
470 B
Python
from sys import version_info
|
|
|
|
try:
|
|
# noinspection PyPackageRequirements
|
|
from lxml import etree
|
|
is_lxml = True
|
|
except ImportError:
|
|
is_lxml = False
|
|
etree = None
|
|
if 2 == version_info[0]:
|
|
try:
|
|
# noinspection PyPep8Naming
|
|
import xml.etree.cElementTree as etree
|
|
except ImportError:
|
|
etree = None
|
|
|
|
if not is_lxml and not etree:
|
|
# noinspection PyPep8Naming
|
|
import xml.etree.ElementTree as etree
|