Remove lxml

Remove usage of lxml, xml used instead

Change-Id: I0abf3df209d5ab5547c6e9047327c3a38f7bc4bb
Closes-bug: #1477613
This commit is contained in:
Dmitry Tyzhnenko 2015-07-23 16:41:32 +03:00
parent 1c12e631d9
commit ec240070a9
2 changed files with 2 additions and 4 deletions

View File

@ -18,7 +18,6 @@ import xml.etree.ElementTree as ET
import ipaddr
import libvirt
from lxml import etree
from devops.driver.libvirt.libvirt_xml_builder import LibvirtXMLBuilder
from devops.helpers.helpers import _get_file_size
@ -38,9 +37,9 @@ class Snapshot(object):
@property
def created(self):
xml_tree = etree.fromstring(self._xml)
xml_tree = ET.fromstring(self._xml)
timestamp = xml_tree.xpath('/domainsnapshot/creationTime/text()')[0]
timestamp = xml_tree.findall('./creationTime')[0].text
return datetime.datetime.utcfromtimestamp(float(timestamp))
@property

View File

@ -42,7 +42,6 @@ setup(
'south',
'PyYAML',
'libvirt-python',
'lxml',
'tabulate',
]
)