commit: c89b5735ea1e57c2f0b7ca5db181b53432d11c4b
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 13 21:14:02 2017 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Aug 13 21:14:02 2017 +0000
URL: https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=c89b5735
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()