Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/eclean/
Date: Sun, 03 Jul 2016 06:29:34
Message-Id: 1467527357.a6b0f09806845ba305eb1a39b90ff8752552c9df.zmedico@gentoo
1 commit: a6b0f09806845ba305eb1a39b90ff8752552c9df
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 3 06:27:43 2016 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 06:29:17 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=a6b0f098
7
8 eclean: fix DeprecationWarning: Passing nonexistent key 'NOCOLOR'
9
10 pym/gentoolkit/eclean/cli.py | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/pym/gentoolkit/eclean/cli.py b/pym/gentoolkit/eclean/cli.py
14 index aa9af3f..d8c5bd2 100644
15 --- a/pym/gentoolkit/eclean/cli.py
16 +++ b/pym/gentoolkit/eclean/cli.py
17 @@ -1,6 +1,6 @@
18 #!/usr/bin/python
19
20 -# Copyright 2003-2010 Gentoo Foundation
21 +# Copyright 2003-2016 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24
25 @@ -448,7 +448,7 @@ def main():
26 """Parse command line and execute all actions."""
27 # set default options
28 options = {}
29 - options['nocolor'] = (port_settings["NOCOLOR"] in ('yes','true')
30 + options['nocolor'] = (port_settings.get("NOCOLOR") in ('yes','true')
31 or not sys.stdout.isatty())
32 if options['nocolor']:
33 pp.output.nocolor()