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 185AB138359 for ; Mon, 3 Aug 2020 22:45:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 00E20E0D34; Mon, 3 Aug 2020 22:44:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 DF0A0E0D34 for ; Mon, 3 Aug 2020 22:44:18 +0000 (UTC) From: Aaron Bauman To: gentoo-portage-dev@lists.gentoo.org Cc: Aaron Bauman Subject: [gentoo-portage-dev] [PATCH 37/68] lib/portage/_sets/__init__.py: fix whitespace Date: Mon, 3 Aug 2020 18:42:56 -0400 Message-Id: <20200803224327.1593726-37-bman@gentoo.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200803224327.1593726-1-bman@gentoo.org> References: <20200803224327.1593726-1-bman@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 3a610ee4-ff3a-44ad-9b42-049b93123764 X-Archives-Hash: 701b14be5b94603af0a8e26a4f494e25 Signed-off-by: Aaron Bauman --- lib/portage/_sets/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/portage/_sets/__init__.py b/lib/portage/_sets/__init__.py index 6c6df4cca..ea0a8b9b4 100644 --- a/lib/portage/_sets/__init__.py +++ b/lib/portage/_sets/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2007-2019 Gentoo Authors +# Copyright 2007-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -150,12 +150,12 @@ class SetConfig: if not setname in self.psets: options["name"] = setname options["world-candidate"] = "False" - + # for the unlikely case that there is already a section with the requested setname import random while setname in parser.sections(): setname = "%08d" % random.randint(0, 10**10) - + parser.add_section(setname) for k, v in options.items(): parser.set(setname, k, v) @@ -200,7 +200,7 @@ class SetConfig: optdict = {} for oname in parser.options(sname): optdict[oname] = parser.get(sname, oname) - + # create single or multiple instances of the given class depending on configuration if parser.has_option(sname, "multiset") and \ parser.getboolean(sname, "multiset"): @@ -245,7 +245,7 @@ class SetConfig: "must be configured as multiset") % {"class": classname, "section": sname}) continue self._parsed = True - + def getSets(self): self._parse() return self.psets.copy() -- 2.28.0