From c89b5735ea1e57c2f0b7ca5db181b53432d11c4b Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Sun, 13 Aug 2017 23:14:02 +0200 Subject: assign a default value to these args --- src/py/xml-rewrite-2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/xml-rewrite-2.py b/src/py/xml-rewrite-2.py index 5c115eb..1135cc3 100755 --- a/src/py/xml-rewrite-2.py +++ b/src/py/xml-rewrite-2.py @@ -79,7 +79,7 @@ class DomRewriter: class StreamRewriterBase: - def __init__(self, elems, attributes, values, index, + def __init__(self, elems=[], attributes=[], values=[], index, sourceElems=[], sourceAttributes=[], sourceValues=[], targetElems=[], targetAttributes=[], targetValues=[]): self.buffer = io.StringIO() -- cgit v1.2.3-65-gdbad