Commit 82e59a95 authored by Michal's avatar Michal Committed by Jehan
parent 09d1a3c8
......@@ -19,12 +19,9 @@ def makearchive (dest, manifest, root):
def parse_packagedb (packagedb_loc):
"""Parses a jhbuild packagedb.xml file"""
packages = []
tree = ElementTree.parse (packagedb_loc)
root = tree.getroot ()
for child in root:
packages.append (child.attrib)
packages = [child.attrib for child in root]
return packages
......
......@@ -94,10 +94,7 @@ def colorxhtml(img, drawable, filename, raw_filename,
chars = chars.translate(allchars, badchars)
data = []
for c in chars:
data.append(escape_table.get(c, c))
data = [escape_table.get(c, c) for c in chars]
if data:
data.reverse()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment