diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2009-12-29 15:32:03 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2009-12-29 15:32:03 +0100 |
commit | 1d2c84df69f450318b2632ef5710ce392ef2802d (patch) | |
tree | a2acf9672dd09374fc2697b566878ec4c720c5e3 | |
parent | Fix post-1.2.4 whitespace-stripping bug (diff) | |
download | layman-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.py | 2 | ||||
-rw-r--r-- | layman/overlays/overlay.py | 2 |
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') |