From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 925DE1396D0 for ; Sat, 12 Aug 2017 08:50:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A27A1FC047; Sat, 12 Aug 2017 08:50:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4EAFE1FC014 for ; Sat, 12 Aug 2017 08:50:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2FE7C34172E for ; Sat, 12 Aug 2017 08:50:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C157A7665 for ; Sat, 12 Aug 2017 08:50:09 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1502527800.8dddc208c5c24c559e4a5308926f29ae1a3bf723.monsieurp@gentoo> Subject: [gentoo-commits] proj/javatoolkit:master commit in: src/py/ X-VCS-Repository: proj/javatoolkit X-VCS-Files: src/py/xml-rewrite-2.py X-VCS-Directories: src/py/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 8dddc208c5c24c559e4a5308926f29ae1a3bf723 X-VCS-Branch: master Date: Sat, 12 Aug 2017 08:50:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e46f6d8a-9521-455e-8e3b-2bfce0845be5 X-Archives-Hash: 4a573f97dc13b8e2d52332f91647eba0 commit: 8dddc208c5c24c559e4a5308926f29ae1a3bf723 Author: Patrice Clement gentoo org> AuthorDate: Fri Aug 11 17:35:11 2017 +0000 Commit: Patrice Clement gentoo 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)