commit:     8dddc208c5c24c559e4a5308926f29ae1a3bf723
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 11 17:35:11 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sat Aug 12 08:50:00 2017 +0000
URL:        https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=8dddc208

remove useless or statements

In fact, those statements are not needed since the constructor relies on
keyword arguments.

 src/py/xml-rewrite-2.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/py/xml-rewrite-2.py b/src/py/xml-rewrite-2.py
index 030a939..42cb7d3 100755
--- a/src/py/xml-rewrite-2.py
+++ b/src/py/xml-rewrite-2.py
@@ -82,15 +82,15 @@ class StreamRewriterBase:
                  targetElems=[], targetAttributes=[], targetValues=[]):
         self.buffer = io.StringIO()
         self.__write = self.buffer.write
-        self.elems = elems or []
-        self.attributes = attributes or []
-        self.values = values or []
-        self.sourceElems = sourceElems or []
-        self.sourceAttributes = sourceAttributes or []
-        self.sourceValues = sourceValues or []
-        self.targetElems = targetElems or []
-        self.targetAttributes = targetAttributes or []
-        self.targetValues = targetValues or []
+        self.elems = elems
+        self.attributes = attributes
+        self.values = values
+        self.sourceElems = sourceElems
+        self.sourceAttributes = sourceAttributes
+        self.sourceValues = sourceValues
+        self.targetElems = targetElems
+        self.targetAttributes = targetAttributes
+        self.targetValues = targetValues
 
     def p(self, str):
         self.__write(str)

Reply via email to