def user(self):
        """Creates a User object when requested."""
        try:
            return self._user
        except AttributeError:
            self._user = MatrixUser(self.mxid, self.Api(identity=self.mxid))
            return self._user
def user ( self ) : try : return self . _user except AttributeError : self . _user = MatrixUser ( self . mxid , self . Api ( identity = self . mxid ) ) return self . _user
Creates a User object when requested.