Gentoo Archives: gentoo-catalyst

From: Mike Frysinger <vapier@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 3/9] stagebase: disable undefined-variable lint warning
Date: Mon, 12 Oct 2015 04:36:11
Message-Id: 1444624562-26162-3-git-send-email-vapier@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 1/9] convert octals to py3 compat by Mike Frysinger
1 raw_input doesn't exist w/py3, so pylint complains. Disable
2 the warning for this one line since we know it's fine.
3 ---
4 catalyst/base/stagebase.py | 2 +-
5 1 file changed, 1 insertion(+), 1 deletion(-)
6
7 diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
8 index a4832ec..770ce76 100644
9 --- a/catalyst/base/stagebase.py
10 +++ b/catalyst/base/stagebase.py
11 @@ -28,7 +28,7 @@ from catalyst.base.resume import AutoResume
12 if sys.version_info[0] >= 3:
13 py_input = input
14 else:
15 - py_input = raw_input
16 + py_input = raw_input # pylint: disable=undefined-variable
17
18
19 class StageBase(TargetBase, ClearBase, GenBase):
20 --
21 2.5.2