This commit is contained in:
Kovid Goyal 2013-05-14 11:42:31 +05:30
parent 802e4c52fb
commit ffdc9d377c

View File

@ -22,7 +22,7 @@ def dump(path):
zf.extractall(dest) zf.extractall(dest)
for f in walk(dest): for f in walk(dest):
if f.endswith('.xml'): if f.endswith('.xml') or f.endswith('.rels'):
with open(f, 'r+b') as stream: with open(f, 'r+b') as stream:
raw = stream.read() raw = stream.read()
root = etree.fromstring(raw) root = etree.fromstring(raw)