lfcli_base: Fix whitespace

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-12-06 11:24:32 -08:00
parent f9b3347138
commit 12f4263843

View File

@@ -17,7 +17,6 @@ if sys.version_info[0] != 3:
print("This script requires Python 3") print("This script requires Python 3")
exit() exit()
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../"))) sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../")))
debug_printer = pprint.PrettyPrinter(indent=2) debug_printer = pprint.PrettyPrinter(indent=2)
@@ -30,9 +29,7 @@ if os.environ.get("LF_USE_AUTOGEN") == 1:
LFSession = lanforge_api.LFSession LFSession = lanforge_api.LFSession
class LFCliBase: class LFCliBase:
SHOULD_RUN = 0 # indicates normal operation SHOULD_RUN = 0 # indicates normal operation
SHOULD_QUIT = 1 # indicates to quit loops, close files, send SIGQUIT to threads and return SHOULD_QUIT = 1 # indicates to quit loops, close files, send SIGQUIT to threads and return
SHOULD_HALT = 2 # indicates to quit loops, send SIGABRT to threads and exit SHOULD_HALT = 2 # indicates to quit loops, send SIGABRT to threads and exit
@@ -40,7 +37,6 @@ class LFCliBase:
# - LOGGING - # - LOGGING -
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)
# do not use `super(LFCLiBase,self).__init__(self, host, port, _debug) # do not use `super(LFCLiBase,self).__init__(self, host, port, _debug)
# that is py2 era syntax and will force self into the host variable, making you # that is py2 era syntax and will force self into the host variable, making you
# very confused. # very confused.
@@ -63,7 +59,7 @@ class LFCliBase:
self.proxy = {} self.proxy = {}
self.adjust_proxy(_proxy_str) self.adjust_proxy(_proxy_str)
if (_local_realm is not None): if _local_realm:
self.local_realm = _local_realm self.local_realm = _local_realm
# if (_debug): # if (_debug):
@@ -517,7 +513,6 @@ class LFCliBase:
# print("lfclibase::self.proxy: ") # print("lfclibase::self.proxy: ")
# pprint.pprint(self.proxy) # pprint.pprint(self.proxy)
@staticmethod @staticmethod
def logg2(level="debug", mesg=None): def logg2(level="debug", mesg=None):
if (mesg is None) or (mesg == ""): if (mesg is None) or (mesg == ""):