def __init__(self, vars):
        """Constructs a new XMPP Message from an HTTP request.

        Args:
          vars: A dict-like object to extract message arguments from.
        """
        try:
            self.__sender = vars["from"]
            self.__to = vars["to"]
            self.__body = vars["body"]
        except __HOLE__, e:
            raise InvalidMessageError(e[0])

        self.__command = None
        self.__arg = None
dataset/ETHPy150Open moraes/tipfy/tests/gae_xmpp_test.py/Message.__init__