Gentoo Archives: gentoo-catalyst

From: Matt Turner <mattst88@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] [PATCH 02/37] catalyst: Drop outdated comment
Date: Wed, 21 Oct 2020 03:31:21
Message-Id: CAEdQ38G2Bc4KhgS0uqtJHqzAT2aFSZmya-8tdeqBSC6U5mWgLw@mail.gmail.com
In Reply to: Re: [gentoo-catalyst] [PATCH 02/37] catalyst: Drop outdated comment by Brian Dolbec
1 On Tue, Oct 20, 2020 at 8:02 PM Brian Dolbec <dolsen@g.o> wrote:
2 >
3 > On Tue, 20 Oct 2020 17:23:09 -0700
4 > Matt Turner <mattst88@g.o> wrote:
5 >
6 > > We don't use os.system anymore. We pass self.env to Popen, so the
7 > > comment isn't accurate.
8 > >
9 > > Signed-off-by: Matt Turner <mattst88@g.o>
10 > > ---
11 > > catalyst/base/stagebase.py | 5 -----
12 > > 1 file changed, 5 deletions(-)
13 > >
14 > > diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
15 > > index 48157837..532f7133 100644
16 > > --- a/catalyst/base/stagebase.py
17 > > +++ b/catalyst/base/stagebase.py
18 > > @@ -1307,11 +1307,6 @@ class StageBase(TargetBase, ClearBase,
19 > > GenBase): print_traceback=False)
20 > >
21 > > def setup_environment(self):
22 > > - """
23 > > - Modify the current environment. This is an ugly hack that
24 > > should be
25 > > - fixed. We need this to use the os.system() call since we
26 > > can't
27 > > - specify our own environ
28 > > - """
29 > > log.debug('setup_environment(); settings = %r',
30 > > self.settings) for x in list(self.settings):
31 > > log.debug('setup_environment(); processing: %s', x)
32 >
33 >
34 > Instead of deleting the entire docstring, change it to reflect the
35 > correct info. ‌pylint will bitch about the lack of a docstring.
36
37 We're missing docstrings almost everywhere and have the pylint warning
38 disabled. From .pylintrc:
39
40 # We should clean up things so we can enable:
41 # missing-docstring -- add lots of docstrings everywhere!
42 [...]
43 disable=
44 missing-docstring,
45 [...]
46
47 I'm going to leave this as is for now.