refactor, reduce nesting

not sure if my python is 100% correct, its syntactically correct according to the interpreter, but had an problem withs some dependencies
Nm, I see the typo
On Aug 26, 2014 2:30 PM, "Puneeth Chaganti" <notifications@github.com>
wrote:

> In zulipRequestHandler.py:
>
> > +        return None;
> > +	
> > +    def handle_text_message(self, msg, msgToken):
> > +        print "getMsgQueueToken text"
> > +        return self.text_renderer.get_queue_token(msgToken)
> > +	
> > +    def handle_image_message(self, msg, msgToken):
> > +        print "getMsgQueueToken image"
> > +        queue_token = self.image_renderer.get_queue_token(msgToken)
> > +        print("This is what I got from ImageRenderer")
> > +        print(queue_token)
> > +        return queue_token
> > +
> > +    message_handler_dispatcher = {
> > +        'error': handle_error_message,
> > +        'text': hanlde_text_message,
>
> There's a typo here. Also, should these be methods on the object.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/marqsm/LED-bot/pull/30/files#r16732440>.
>