X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..82c0860d1520489be56457829d49eb17f165b9cd:/src/librarian/builders/sanitize.py?ds=sidebyside diff --git a/src/librarian/builders/sanitize.py b/src/librarian/builders/sanitize.py index 4d7f7f9..74a9b44 100644 --- a/src/librarian/builders/sanitize.py +++ b/src/librarian/builders/sanitize.py @@ -1,3 +1,6 @@ +# This file is part of Librarian, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. +# from lxml import etree from librarian import OutputFile @@ -6,7 +9,7 @@ class Sanitizer: identifier = 'sanitize' file_extension = 'xml2' - def build(self, document): + def build(self, document, **kwargs): doc = document.tree.getroot() # TODO: copy doc.sanitize() return OutputFile.from_bytes(