Disable pylint no-member errors for 2 dnf constants

Related: rhbz#1653934
This commit is contained in:
Alexander Todorov 2019-01-08 13:39:45 +02:00 committed by Brian C. Lane
parent 55bdb8a27a
commit d72ee7bd89

View File

@ -94,7 +94,7 @@ class LoraxRpmCallback(dnf.callback.TransactionProgress):
self._last_ts = None
def progress(self, package, action, ti_done, ti_total, ts_done, ts_total):
if action == dnf.transaction.PKG_INSTALL:
if action == dnf.transaction.PKG_INSTALL: # pylint: disable=no-member
# do not report same package twice
if self._last_ts == ts_done:
return
@ -102,7 +102,7 @@ class LoraxRpmCallback(dnf.callback.TransactionProgress):
msg = '(%d/%d) %s' % (ts_done, ts_total, package)
logger.info(msg)
elif action == dnf.transaction.TRANS_POST:
elif action == dnf.transaction.TRANS_POST: # pylint: disable=no-member
msg = "Performing post-installation setup tasks"
logger.info(msg)