X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/fe8e5b5e224d32baebbdaa2fecf4a847ed4e5354..c7d738ac87aa4933b276103870abb5145fd326f2:/librarian/__init__.py?ds=inline diff --git a/librarian/__init__.py b/librarian/__init__.py index bf41c7a..224b7fd 100644 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -142,7 +142,7 @@ class DirDocProvider(DocProvider): def by_slug(self, slug): fname = slug + '.xml' - return open(os.path.join(self.dir, fname)) + return IOFile.from_filename(os.path.join(self.dir, fname)) import lxml.etree as etree