Gentoo Archives: gentoo-portage-dev

From: Aaron Bauman <bman@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] lib/*: Fix useless-return
Date: Fri, 07 Aug 2020 19:02:31
Message-Id: 20200807190225.GA10083@bubba
In Reply to: [gentoo-portage-dev] [PATCH] lib/*: Fix useless-return by Aaron Bauman
1 On Fri, Aug 07, 2020 at 12:28:04PM -0400, Aaron Bauman wrote:
2 > * Python implies such things. Let's drop 'em and be consistent.
3 >
4 > Signed-off-by: Aaron Bauman <bman@g.o>
5 > ---
6 > "\\" | 20 ++++++++++++++++++++
7 > lib/_emerge/EbuildPhase.py | 6 +++---
8 > lib/_emerge/resolver/output.py | 5 -----
9 > lib/portage/elog/mod_custom.py | 1 -
10 > lib/portage/elog/mod_echo.py | 4 ++--
11 > lib/portage/elog/mod_mail.py | 2 --
12 > lib/portage/glsa.py | 3 ---
13 > lib/portage/mail.py | 1 -
14 > lib/portage/sync/controller.py | 3 +--
15 > lib/portage/util/whirlpool.py | 2 --
16 > pylintrc | 1 +
17 > 11 files changed, 27 insertions(+), 21 deletions(-)
18 > create mode 100644 "\\"
19 >
20 > diff --git "a/\\" "b/\\"
21 > new file mode 100644
22 > index 000000000..aaf1d3b1b
23 > --- /dev/null
24 > +++ "b/\\"
25 > @@ -0,0 +1,20 @@
26 > +# elog/mod_custom.py - elog dispatch module
27 > +# Copyright 2006-2020 Gentoo Authors
28 > +# Distributed under the terms of the GNU General Public License v2
29 > +
30 > +import portage.elog.mod_save
31 > +import portage.exception
32 > +import portage.process
33 > +
34 > +def process(mysettings, key, logentries, fulltext):
35 > + elogfilename = portage.elog.mod_save.process(mysettings, key, logentries, fulltext)
36 > +
37 > if not isinstance(source, bytes):
38 > @@ -777,7 +776,6 @@ def processBuffer(ctx):
39
40 [snip]
41
42 Please disregard. Sending new patch.
43
44 --
45 Cheers,
46 Aaron

Attachments

File name MIME type
signature.asc application/pgp-signature