aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2009-12-29 15:32:03 +0100
committerSebastian Pipping <sebastian@pipping.org>2009-12-29 15:32:03 +0100
commit1d2c84df69f450318b2632ef5710ce392ef2802d (patch)
treea2acf9672dd09374fc2697b566878ec4c720c5e3
parentFix post-1.2.4 whitespace-stripping bug (diff)
downloadlayman-1d2c84df69f450318b2632ef5710ce392ef2802d.tar.gz
layman-1d2c84df69f450318b2632ef5710ce392ef2802d.tar.bz2
layman-1d2c84df69f450318b2632ef5710ce392ef2802d.zip
Rename Overlay.to_minidom to to_xml (as it no longer uses minidom)
-rw-r--r--layman/overlay.py2
-rw-r--r--layman/overlays/overlay.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/layman/overlay.py b/layman/overlay.py
index a787b2d..ae19f28 100644
--- a/layman/overlay.py
+++ b/layman/overlay.py
@@ -158,7 +158,7 @@ class Overlays:
'''
xml = ET.Element('repositories', version="1.0")
- xml[:] = [e.to_minidom() for e in self.overlays.values()]
+ xml[:] = [e.to_xml() for e in self.overlays.values()]
indent(xml)
tree = ET.ElementTree(xml)
try:
diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py
index 6ec9937..e10f562 100644
--- a/layman/overlays/overlay.py
+++ b/layman/overlays/overlay.py
@@ -150,7 +150,7 @@ class Overlay:
self.priority = int(priority)
- def to_minidom(self):
+ def to_xml(self):
'''Convert to xml.'''
repo = ET.Element('repo')