def warning(message, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"warning: {}".format(message), **kwargs)
def _resetExpect(self):
        self.previousExpectLine = ""
        if self._connection is not None and isinstance(self._connection.buffer, str):
            self.previousExpectLine = self._connection.buffer 
            self._connection.buffer = ""