public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/javatoolkit:master commit in: src/py/
Date: Sat, 12 Aug 2017 08:50:09 +0000 (UTC)	[thread overview]
Message-ID: <1502527800.8dddc208c5c24c559e4a5308926f29ae1a3bf723.monsieurp@gentoo> (raw)

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	other threads:[~2017-08-12  8:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-12  8:50 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-19 17:09 [gentoo-commits] proj/javatoolkit:master commit in: src/py/ Miroslav Šulc
2020-12-15 10:21 Miroslav Šulc
2020-07-15 20:15 Patrice Clement
2019-10-29 21:21 Miroslav Šulc
2019-10-29 20:54 Miroslav Šulc
2017-08-13 22:15 Patrice Clement
2017-08-13 21:14 Patrice Clement
2017-08-13 19:06 Patrice Clement
2017-08-13 19:06 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-12  8:50 Patrice Clement
2017-08-11 13:12 Patrice Clement
2017-08-09 22:35 Patrice Clement
2017-08-07 23:48 Patrice Clement
2017-08-07 23:48 Patrice Clement
2017-08-07 23:48 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1502527800.8dddc208c5c24c559e4a5308926f29ae1a3bf723.monsieurp@gentoo \
    --to=monsieurp@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox