def __init__(self):
        """Create the wrapper"""
        from xml.etree import ElementTree as _py_etree
        self._py_etree = _py_etree
        try:
            from lxml import etree as _lxml_etree
            self._lxml_etree = _lxml_etree
        except ImportError:
            self._lxml_etree = None

        if os.getenv('NO_LXML', None):
            self._etree = self._py_etree
        else:
            self._etree = self._lxml_etree or self._py_etree
        self.lxml = self._etree is self._lxml_etree
def __init__ ( self ) : from xml . etree import ElementTree as _py_etree self . _py_etree = _py_etree try : from lxml import etree as _lxml_etree self . _lxml_etree = _lxml_etree except ImportError : self . _lxml_etree = None if os . getenv ( 'NO_LXML' , None ) : self . _etree = self . _py_etree else : self . _etree = self . _lxml_etree or self . _py_etree self . lxml = self . _etree is self . _lxml_etree
Create the wrapper