Re: [PATCH] lib/portage/repository/config.py: fix trailing-comma-tuple

Zac Medico <[email protected]>
Newsgroups gmane.linux.gentoo.portage.devel
Message-ID <[email protected]>
On 8/4/20 7:35 PM, Aaron Bauman wrote:
> * This fixes the one instance of trailing-comma-tuple in the repo
> * A tuple does need created, but lets do so inside of parentheses as
>   expected
> 
> Suggested-By: Sam James <[email protected]>
> Suggested-By: Zac Medico <[email protected]>
> Signed-off-by: Aaron Bauman <[email protected]>
> ---
>  lib/portage/repository/config.py | 2 +-
>  pylintrc                         | 3 ++-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/portage/repository/config.py b/lib/portage/repository/config.py
> index 0f3e582f8..f7c956dd8 100644
> --- a/lib/portage/repository/config.py
> +++ b/lib/portage/repository/config.py
> @@ -871,7 +871,7 @@ class RepoConfigLoader:
>  				continue
>  			if repo.masters is None:
>  				if self.mainRepo() and repo_name != self.mainRepo().name:
> -					repo.masters = self.mainRepo(),
> +					repo.masters = (self.mainRepo(),)
>  				else:
>  					repo.masters = ()
>  			else:
> diff --git a/pylintrc b/pylintrc
> index 337311daa..5e13f714c 100644
> --- a/pylintrc
> +++ b/pylintrc
> @@ -21,7 +21,8 @@ enable=
>          redefined-builtin,
>          reimported,
>          relative-beyond-top-level,
> -        trailing-newlines,
> +        trailing-comma-tuple,
> +	trailing-newlines,
>          trailing-whitespace,
>          unexpected-line-ending-format,
>          unnecessary-semicolon,
> 

Thanks, merged:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=3e0063094ce656a173f46a9a4837260322769f2e
-- 
Thanks,
Zac
signature.asc (application/pgp-signature, 981 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQKTBAEBCgB9FiEE8OgXaltWzqgSupCu0HX7jBBKPSAFAl8qJKhfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEYw
RTgxNzZBNUI1NkNFQTgxMkJBOTBBRUQwNzVGQjhDMTA0QTNEMjAACgkQ0HX7jBBK
PSBAOg//U1LduCTpQKuGWvnnuacuY/z/CALm6fQFROauDRUwonzrazibuYYCgR0b
48iD8R7gJOhdb/DnmG3U1AbbDsU0M7ZzLhPFWIg0NZw04EfKyFu52AEPQowOgXXg
Td5vxH6Gu/pelaxNKhv99tecmqdIWoxZjM862ccoF48gimYqF83qm/9WIBcgqI1L
5P4W6Ad2ZU8UszJZa3Vm89uS5Y/Drfqj2+5PXNKdICuEEMsKS7P16Awz18/jYsDO
4hzJYlC4fAMNficR4I7WZgeg8ZVJ+Zfo1+9hpOnsf94Mp03l8Asr+AjH+mstXjUA
IJgA61zjdU/IknX1uQWrHkQckrvDS82Xhl07KsC4xP6NhJujuM1rTeJGuM4CjdJ0
zmhVnrVQeEcnpCIERSaAgJpM5xFysQWnOFGKMikx0Et3JDtRkwB3yguNhxAXJdwC
peLpSOc++QCRoDcAiOaYCgKroQoc3QuHntPRms8ilAhHl57HtiRzynWlgBuxbApQ
OXogZZ11dFtm/E4wr0T6bNAjA4KEm8biulW11Dtk9oKoXBUU09kLKCrS+fIT4SZ0
HcmLWP+WtiKdj2AgTnCBiAaqe7+u7q4CR1GR56/s9czxSZxynxwE9CGhDIGs385f
eZ5Q14MsEOlT2PCGH7QExXaru0hCvQVGkuH8Xs1/ZCdreE/xDKM=
=jnE6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.