code: def exit_config_mode(self, exit_config="exit", pattern=""):
          
          if not pattern:
              pattern = re.escape(self.base_prompt)
          return super(CiscoWlcSSH, self).exit_config_mode(exit_config, pattern)
docs: Exit config_mode.