Gentoo Archives: gentoo-catalyst

From: Mike Frysinger <vapier@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 09/13] lint: mark unused func args
Date: Tue, 06 Oct 2015 15:06:09
Message-Id: 1444143929-26705-9-git-send-email-vapier@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 01/13] lint: fix duplicate fcntl import by Mike Frysinger
1 Since these aren't used, the linter will warn, but these are callbacks
2 that expect a certain API, so add a _ prefix to quiet it down.
3 ---
4 bin/catalyst | 2 +-
5 doc/make_target_table.py | 2 +-
6 2 files changed, 2 insertions(+), 2 deletions(-)
7
8 diff --git a/bin/catalyst b/bin/catalyst
9 index 19f5289..d0bc153 100755
10 --- a/bin/catalyst
11 +++ b/bin/catalyst
12 @@ -16,7 +16,7 @@ import sys
13 try:
14 import signal
15
16 - def exithandler(signum,frame):
17 + def exithandler(_signum, _frame):
18 signal.signal(signal.SIGINT, signal.SIG_IGN)
19 signal.signal(signal.SIGTERM, signal.SIG_IGN)
20 print()
21 diff --git a/doc/make_target_table.py b/doc/make_target_table.py
22 index 9e7ebe8..f127c37 100755
23 --- a/doc/make_target_table.py
24 +++ b/doc/make_target_table.py
25 @@ -16,7 +16,7 @@ import glob
26 import re
27
28
29 -def key_netboot_before_netboot2((target_name, module)):
30 +def key_netboot_before_netboot2((target_name, _module)):
31 return target_name + '1'
32
33
34 --
35 2.5.2