Skip to content

Commit

Permalink
[xml] fix file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef committed Dec 1, 2023
1 parent f14f059 commit 6d5faa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/loaders/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def iterload(self):
vd.importExternal('lxml')
from lxml import etree, objectify
p = etree.XMLParser(**self.options.getall('xml_parser_'))
self.root = etree.parse(self.source.open_text_source(), parser=p)
self.root = etree.parse(self.open_text_source(), parser=p)
objectify.deannotate(self.root, cleanup_namespaces=True)
else: # elif isinstance(self.source, XmlElement):
self.root = self.source
Expand Down

0 comments on commit 6d5faa0

Please sign in to comment.