[elbe-devel] [PATCH 28/40] pylint: cmd/updated.py - disable unused argument
Torben Hohn
torben.hohn at linutronix.de
Thu Sep 20 13:25:57 CEST 2018
please prefix unused arguments with underscore.
anyways... the signal callback has 2 arguments.
On Fri, Sep 14, 2018 at 01:56:40PM +0200, Manuel Traut wrote:
> the function is a callback and therefor needs those arguments
>
> Signed-off-by: Manuel Traut <manut at linutronix.de>
> ---
> elbepack/commands/updated.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/elbepack/commands/updated.py b/elbepack/commands/updated.py
> index 2f8c3337..7dc1ed6f 100644
> --- a/elbepack/commands/updated.py
> +++ b/elbepack/commands/updated.py
> @@ -25,6 +25,7 @@ except ImportError:
>
>
> def shutdown(signum, fname, status):
> + #pylint: disable=unused-argument
> status.stop = True
> for mon in status.monitors:
> mon.stop()
> --
> 2.19.0.rc2
>
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20180920/f0d48ab6/attachment.sig>
More information about the elbe-devel
mailing list