aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-08-13 23:14:02 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-08-13 23:14:02 +0200
commitc89b5735ea1e57c2f0b7ca5db181b53432d11c4b (patch)
tree6ffda7f32848c384a032a1e09417f1af5ba3140f
parentreformat header (diff)
downloadjavatoolkit-c89b5735ea1e57c2f0b7ca5db181b53432d11c4b.tar.gz
javatoolkit-c89b5735ea1e57c2f0b7ca5db181b53432d11c4b.tar.bz2
javatoolkit-c89b5735ea1e57c2f0b7ca5db181b53432d11c4b.zip
assign a default value to these args
-rwxr-xr-xsrc/py/xml-rewrite-2.py2
1 files changed, 1 insertions, 1 deletions
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()