From 8ef981fe6cd87066a632be085dbcbdec4a18e0da Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Mon, 5 Mar 2018 17:39:44 -0500 Subject: [PATCH] Remove code shim after class var renaming Updated rhs_split docstring in MuxCommand --- evennia/commands/default/muxcommand.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/evennia/commands/default/muxcommand.py b/evennia/commands/default/muxcommand.py index 93606cdbe5..7339780fe7 100644 --- a/evennia/commands/default/muxcommand.py +++ b/evennia/commands/default/muxcommand.py @@ -82,8 +82,9 @@ class MuxCommand(Command): Optional variables to aid in parsing, if set: self.switch_options - (tuple of valid /switches expected by this command (without the /)) - self.rhs_split - Alternate string delimiter to separate - left/right hand sides. + self.rhs_split - Alternate string delimiter or tuple of strings + 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 following variables: @@ -103,11 +104,6 @@ class MuxCommand(Command): """ raw = self.args 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: if not hasattr(self, "switch_options"): self.switch_options = None