From 23f22e8e8ca50c862d1cece31a0a87050685cdd7 Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Thu, 5 Mar 2020 13:21:59 +0100 Subject: Fix Python linting issues in Python scripts Fixed pylint issues for categories len-as-condition, using-constant-test, undefined-variable and reimported. Change-Id: Idad710958c3ca0ac6da78fb4709da03e5f079b34 Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski --- .../pnfsimulator/netconfsimulator/netconf/netopeer_change_saver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/mocks/pnfsimulator/netconfsimulator') diff --git a/test/mocks/pnfsimulator/netconfsimulator/netconf/netopeer_change_saver.py b/test/mocks/pnfsimulator/netconfsimulator/netconf/netopeer_change_saver.py index 0a9e841d2..92f88463d 100644 --- a/test/mocks/pnfsimulator/netconfsimulator/netconf/netopeer_change_saver.py +++ b/test/mocks/pnfsimulator/netconfsimulator/netconf/netopeer_change_saver.py @@ -71,7 +71,7 @@ def send_message(message): def create_producer(server): - for i in range(10): + for i in range(10): # pylint: disable=W0612 try: return KafkaProducer(bootstrap_servers=server, value_serializer=lambda v: json.dumps(v).encode('utf-8')) except Exception: -- cgit 1.2.3-korg