[elbe-devel] [PATCH 1/4] elbepack: xmlpreprocess: fix docs of xmlpreprocess()

Thomas Weißschuh thomas.weissschuh at linutronix.de
Thu May 23 09:30:41 CEST 2024


The function only works with a path argument.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/xmlpreprocess.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/elbepack/xmlpreprocess.py b/elbepack/xmlpreprocess.py
index 881d293f1b68..835d218076d0 100644
--- a/elbepack/xmlpreprocess.py
+++ b/elbepack/xmlpreprocess.py
@@ -341,8 +341,8 @@ def preprocess_passwd(xml):
 def xmlpreprocess(xml_input_file, xml_output_file, variants=None, proxy=None, gzip=9):
     """Preprocesses the input XML data to make sure the `output`
        can be validated against the current schema.
-       `xml_input_file` is either a file-like object or a path (str) to the input file.
-       `xml_output_file` is either a file-like object or a path (str) to the output file.
+       `xml_input_file` is a path (str) to the input file.
+       `xml_output_file` is a path (str) to the output file.
     """
 
     # first convert variants to a set

-- 
2.45.1



More information about the elbe-devel mailing list