diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-08-11 19:35:11 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-08-12 10:50:00 +0200 |
commit | 8dddc208c5c24c559e4a5308926f29ae1a3bf723 (patch) | |
tree | f24d68da35ca6555dcfc60ff2c961fe93885be12 | |
parent | remove ChangeLog (diff) | |
download | javatoolkit-8dddc208c5c24c559e4a5308926f29ae1a3bf723.tar.gz javatoolkit-8dddc208c5c24c559e4a5308926f29ae1a3bf723.tar.bz2 javatoolkit-8dddc208c5c24c559e4a5308926f29ae1a3bf723.zip |
remove useless or statements
In fact, those statements are not needed since the constructor relies on
keyword arguments.
-rwxr-xr-x | src/py/xml-rewrite-2.py | 18 |
1 files 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) |