summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Core.py2
-rw-r--r--src/lib/Server/Metadata.py2
-rw-r--r--src/lib/Server/Plugin.py2
-rw-r--r--src/lib/Server/Plugins/Base.py2
-rw-r--r--src/lib/Server/Plugins/Bundler.py4
-rw-r--r--src/lib/Server/Plugins/Hostbase.py2
-rw-r--r--src/lib/Server/Plugins/TCheetah.py2
-rw-r--r--src/lib/Server/Plugins/Vhost.py2
8 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index 1b1504dc1..588ae7670 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -8,7 +8,7 @@ from syslog import syslog, LOG_ERR, LOG_INFO
from traceback import extract_tb
from time import time
from ConfigParser import ConfigParser
-from elementtree.ElementTree import Element
+from lxml.etree import Element
from Bcfg2.Server.Plugin import PluginInitError, PluginExecutionError
from Bcfg2.Server.Metadata import MetadataStore, MetadataConsistencyError
diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py
index 272be74b9..a4f3779d4 100644
--- a/src/lib/Server/Metadata.py
+++ b/src/lib/Server/Metadata.py
@@ -1,7 +1,7 @@
'''This file stores persistent metadata for the BCFG Configuration Repository'''
__revision__ = '$Revision$'
-from elementtree.ElementTree import XML, SubElement, Element
+from lxml.etree import XML, SubElement, Element
from syslog import syslog, LOG_ERR, LOG_INFO
from Bcfg2.Server.Plugin import SingleXMLFileBacked
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index 192252d9e..0e174375a 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -1,7 +1,7 @@
'''This module provides the baseclass for Bcfg2 Server Plugins'''
__revision__ = '$Revision:$'
-from elementtree.ElementTree import XML
+from lxml.etree import XML
from os import stat
from stat import ST_MTIME
from syslog import syslog, LOG_ERR, LOG_INFO
diff --git a/src/lib/Server/Plugins/Base.py b/src/lib/Server/Plugins/Base.py
index 905287144..0b912cb01 100644
--- a/src/lib/Server/Plugins/Base.py
+++ b/src/lib/Server/Plugins/Base.py
@@ -2,7 +2,7 @@
__revision__ = '$Revision$'
from copy import deepcopy
-from elementtree.ElementTree import Element, XML
+from lxml.etree import Element, XML
from xml.parsers.expat import ExpatError
from Bcfg2.Server.Plugin import Plugin, PluginInitError, SingleXMLFileBacked
diff --git a/src/lib/Server/Plugins/Bundler.py b/src/lib/Server/Plugins/Bundler.py
index b2ea2d9e5..c602dceb7 100644
--- a/src/lib/Server/Plugins/Bundler.py
+++ b/src/lib/Server/Plugins/Bundler.py
@@ -3,11 +3,11 @@ __revision__ = '$Revision$'
from copy import deepcopy
from syslog import LOG_ERR, syslog
+from lxml.etree import Element, XML
+from xml.parsers.expat import ExpatError
from Bcfg2.Server.Plugin import Plugin, SingleXMLFileBacked, XMLFileBacked, DirectoryBacked
-from elementtree.ElementTree import Element, XML
-from xml.parsers.expat import ExpatError
class ImageFile(SingleXMLFileBacked):
'''This file contains image -> system mappings'''
diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py
index 59518b542..3612486ea 100644
--- a/src/lib/Server/Plugins/Hostbase.py
+++ b/src/lib/Server/Plugins/Hostbase.py
@@ -2,7 +2,7 @@
__revision__ = '$Revision$'
from syslog import syslog, LOG_INFO
-from cElementTree import XML
+from lxml.etree import XML
from Cheetah.Template import Template
from Bcfg2.Server.Plugin import Plugin, PluginExecutionError, PluginInitError, DirectoryBacked
diff --git a/src/lib/Server/Plugins/TCheetah.py b/src/lib/Server/Plugins/TCheetah.py
index 528af2019..9b58737c1 100644
--- a/src/lib/Server/Plugins/TCheetah.py
+++ b/src/lib/Server/Plugins/TCheetah.py
@@ -4,7 +4,7 @@ __revision__ = '$Revision$'
from posixpath import isdir
from syslog import syslog, LOG_ERR
from Bcfg2.Server.Plugin import Plugin, PluginExecutionError, FileBacked, SingleXMLFileBacked
-from elementtree.ElementTree import XML
+from lxml.etree import XML
from xml.parsers.expat import ExpatError
from Cheetah.Template import Template
diff --git a/src/lib/Server/Plugins/Vhost.py b/src/lib/Server/Plugins/Vhost.py
index b7a0c6a66..56d4e68f8 100644
--- a/src/lib/Server/Plugins/Vhost.py
+++ b/src/lib/Server/Plugins/Vhost.py
@@ -16,7 +16,7 @@ __revision__ = '$Revision$'
import base64
from copy import deepcopy
-from elementtree.ElementTree import XML, Element, SubElement
+from lxml.etree import XML, Element, SubElement
from socket import gethostbyname
from Bcfg2.Server.Plugin import Plugin, PluginExecutionError, SingleXMLFileBacked