From a92aa634918b1557cf9a9ad388c1732eec84ec1b Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 24 May 2017 09:11:55 -0700 Subject: [PATCH] pylint: Ignore different argument lengths for dnf callback. It may or may not be used with a newer version of dnf. The callback doesn't use the argument so just ignore it. --- src/pylorax/dnfhelper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pylorax/dnfhelper.py b/src/pylorax/dnfhelper.py index 754f66bb..291499cc 100644 --- a/src/pylorax/dnfhelper.py +++ b/src/pylorax/dnfhelper.py @@ -80,6 +80,8 @@ class LoraxDownloadCallback(dnf.callback.DownloadProgress): self.downloads[nevra] = done self._update() + # dnf 2.5.0 adds a new argument, accept it if it is passed + # pylint: disable=arguments-differ def start(self, total_files, total_size, total_drpms=0): self.total_files = total_files self.total_size = total_size