From 4a24b744bb7c12d6f3e7f13936ef16df76298d21 Mon Sep 17 00:00:00 2001 From: Leo-Paul Geneau Date: Tue, 25 Oct 2022 17:52:24 +0200 Subject: [PATCH] Linter compliance --- pimdm/Config.py | 4 ++-- pimdm/InterfacePIM.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pimdm/Config.py b/pimdm/Config.py index dca7738..c80238c 100644 --- a/pimdm/Config.py +++ b/pimdm/Config.py @@ -167,13 +167,13 @@ def get_yaml_file(): """ dict_file = BASE_CONFIG.copy() - for if_name, if_value in Main.interfaces.items(): + for if_name, _ in Main.interfaces.items(): dict_file["PIM-DM"]["Interfaces"][if_name] = {} dict_file["PIM-DM"]["Interfaces"][if_name]["ipv4"] = { "enabled": True, } - for if_name, if_value in Main.interfaces_v6.items(): + for if_name, _ in Main.interfaces_v6.items(): if if_name not in dict_file["PIM-DM"]["Interfaces"]: dict_file["PIM-DM"]["Interfaces"][if_name] = {} diff --git a/pimdm/InterfacePIM.py b/pimdm/InterfacePIM.py index 20014d7..ea98e4a 100644 --- a/pimdm/InterfacePIM.py +++ b/pimdm/InterfacePIM.py @@ -8,7 +8,7 @@ from pimdm.packet.ReceivedPacket import ReceivedPacket from pimdm import Main from pimdm.rwlock.RWLock import RWLockWrite -from pimdm.packet.PacketPimHelloOptions import * +from pimdm.packet.PacketPimHelloOptions import PacketPimHelloHoldtime, PacketPimHelloGenerationID, PacketPimHelloStateRefreshCapable from pimdm.packet.PacketPimHello import PacketPimHello from pimdm.packet.PacketPimHeader import PacketPimHeader from pimdm.packet.Packet import Packet