west: commands: Make functions that don't use 'self' static
Fixes this pylint warning:
R0201: Method could be a function (no-self-use)
Another option would be to turn them into regular functions, but that'd
be a bigger change.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
diff --git a/scripts/west_commands/sign.py b/scripts/west_commands/sign.py
index 1ea90cc..c537b23 100644
--- a/scripts/west_commands/sign.py
+++ b/scripts/west_commands/sign.py
@@ -264,7 +264,8 @@
log.dbg(quote_sh_list(sign_hex))
subprocess.check_call(sign_hex)
- def get_cfg(self, command, bcfg, item):
+ @staticmethod
+ def get_cfg(command, bcfg, item):
try:
return bcfg[item]
except KeyError: