From a2521ff3b6fc8e80c0936f7d1e7a0408d092df0d Mon Sep 17 00:00:00 2001 From: Brandon Ewing Date: Tue, 30 Jan 2024 17:00:38 -0600 Subject: [PATCH] blacken --- napalm_mos/mos.py | 5 ----- setup.py | 1 + test/unit/conftest.py | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/napalm_mos/mos.py b/napalm_mos/mos.py index 22973d8..1654357 100644 --- a/napalm_mos/mos.py +++ b/napalm_mos/mos.py @@ -524,7 +524,6 @@ def _transform_lldp_capab(self, capabilities): ) def get_lldp_neighbors_detail(self, interface=""): - lldp_neighbors_out = {} commands = ["show lldp neighbor {} verbose".format(interface)] @@ -536,10 +535,8 @@ def get_lldp_neighbors_detail(self, interface=""): interface_list = zip(*(iter(interfaces_split),) * 2) for interface, interface_str in interface_list: - lldp_neighbors_out[interface] = [] for neighbor_str in interface_str.strip().split("\n\n"): - info_dict = {} for info_line in neighbor_str.strip().splitlines(): @@ -616,7 +613,6 @@ def cli(self, commands, encoding="text"): return cli_output def get_arp_table(self, vrf=""): - if vrf: raise NotImplementedError("Metamako MOS does not support multiple VRFs") @@ -728,7 +724,6 @@ def get_snmp_information(self): community_outputs = snmp_config[3]["output"].split("\n\n") for community_output in community_outputs: - match = self._RE_SNMP_COMM.search(community_output) if match: matches = match.groupdict("") diff --git a/setup.py b/setup.py index d4ec765..6d24b7e 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """setup.py file.""" + from setuptools import setup, find_packages __author__ = "Benny Holmgren " diff --git a/test/unit/conftest.py b/test/unit/conftest.py index 1cfc93b..4030371 100644 --- a/test/unit/conftest.py +++ b/test/unit/conftest.py @@ -1,4 +1,5 @@ """Test fixtures.""" + from builtins import super import pytest