Remove code shim after class var renaming

Updated rhs_split docstring in MuxCommand
This commit is contained in:
BlauFeuer 2018-03-05 17:39:44 -05:00 committed by GitHub
parent 564b78ae23
commit e78de5f7f0

View file

@ -82,8 +82,9 @@ class MuxCommand(Command):
Optional variables to aid in parsing, if set: Optional variables to aid in parsing, if set:
self.switch_options - (tuple of valid /switches expected by this self.switch_options - (tuple of valid /switches expected by this
command (without the /)) command (without the /))
self.rhs_split - Alternate string delimiter to separate self.rhs_split - Alternate string delimiter or tuple of strings
left/right hand sides. to separate left/right hand sides. tuple form
gives priority split to first string delimeter.
This parser breaks self.args into its constituents and stores them in the This parser breaks self.args into its constituents and stores them in the
following variables: following variables:
@ -103,11 +104,6 @@ class MuxCommand(Command):
""" """
raw = self.args raw = self.args
args = raw.strip() args = raw.strip()
# Temporary code to use the old settings before renaming # #
if hasattr(self, "options"): #
self.switch_options = self.options #
if hasattr(self, "split") and not hasattr(self, "rhs_split"): #
self.rhs_split = self.split # # #
# Without explicitly setting these attributes, they assume default values: # Without explicitly setting these attributes, they assume default values:
if not hasattr(self, "switch_options"): if not hasattr(self, "switch_options"):
self.switch_options = None self.switch_options = None