Skip to content

Commit 67046e1

Browse files
committed
make_xml returns lxml object instead of string
1 parent e244e37 commit 67046e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

freud_api_crawler/freud_api_crawler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,9 @@ def make_xml(self, save=False, limit=True, dump=False):
404404
tei = ET.fromstring(tei)
405405
transform = ET.XSLT(self.xsl_doc)
406406
tei = transform(tei)
407-
tei = ET.tostring(tei, pretty_print=True, encoding="utf-8")
408407
if save:
409408
with open(self.save_path, 'wb') as f:
410-
f.write(tei)
409+
f.write(ET.tostring(tei, pretty_print=True, encoding="utf-8"))
411410
return tei
412411

413412
def get_man_json_dump(self, lmt=True, dmp=False):

0 commit comments

Comments
 (0)