From 9ba26cacaecc6d05fa3bb673da7e27acec4d226f Mon Sep 17 00:00:00 2001 From: "kuldeep.k@cisinlabs.com" Date: Tue, 28 Sep 2021 21:11:45 +0530 Subject: [PATCH] Updated pylint ignore comments --- src/bmconfigparser.py | 2 +- src/tests/test_config.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bmconfigparser.py b/src/bmconfigparser.py index 13a20fa0..4798dda4 100644 --- a/src/bmconfigparser.py +++ b/src/bmconfigparser.py @@ -201,7 +201,7 @@ class BMConfigParser(SafeConfigParser): continue def readfp(self, fp, filename=None): - # pylint: no-member=ignore + # pylint: disable=no-member SafeConfigParser.read_file(self, fp) else: @staticmethod diff --git a/src/tests/test_config.py b/src/tests/test_config.py index 671f4db7..7b702016 100644 --- a/src/tests/test_config.py +++ b/src/tests/test_config.py @@ -47,8 +47,8 @@ class TestConfig(unittest.TestCase): def tearDown(self): """restore to the backup of BMConfigparser""" - # pylint: protected-access=ignore - BMConfigParser()._reset() + # pylint: disable=protected-access + BMConfigParser()._reset() BMConfigParser().readfp(self.configfile) def test_safeGet(self): @@ -91,7 +91,7 @@ class TestConfig(unittest.TestCase): self.assertEqual( BMConfigParser().safeGetInt('bitmessagesettings', 'maxaddrperstreamsend'), 100) - # pylint: protected-access=ignore + # pylint: disable=protected-access BMConfigParser()._reset() self.assertEqual( BMConfigParser().safeGetInt('bitmessagesettings', 'maxaddrperstreamsend'), 500)