X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=arper.py;h=ff1168ea4ef30b6f0ca16f5411e188b113548a0d;hb=ffed473528c4feb836253758e86f7839af98f57b;hp=a5b1de410f53ae04f917e08c03660b32953e47c1;hpb=bddea36b81ea326fccfa27ef0bae2a80ba1041fd;p=python_utils.git diff --git a/arper.py b/arper.py index a5b1de4..ff1168e 100644 --- a/arper.py +++ b/arper.py @@ -3,29 +3,28 @@ """A caching layer around the kernel's network mapping between IPs and MACs""" - - import datetime import logging import os -from typing import Any, Optional import warnings +from typing import Any, Optional from overrides import overrides import argparse_utils -from collect.bidict import BiDict import config import exec_utils import file_utils import persistent -import string_utils import site_config +import string_utils +from collect.bidict import BiDict logger = logging.getLogger(__name__) cfg = config.add_commandline_args( - f'MAC <--> IP Address mapping table cache ({__file__})', 'Commandline args related to MAC <--> IP Address mapping', + f'MAC <--> IP Address mapping table cache ({__file__})', + 'Commandline args related to MAC <--> IP Address mapping', ) cfg.add_argument( '--arper_cache_location', @@ -48,7 +47,7 @@ cfg.add_argument( ) -@persistent.persistent_autoloaded_singleton() +@persistent.persistent_autoloaded_singleton() # type: ignore class Arper(persistent.Persistent): def __init__(self, cached_state: Optional[BiDict] = None) -> None: self.state = BiDict()