From cbcbfab45f44e12d1660c9ba2808563ec23ec4b1 Mon Sep 17 00:00:00 2001 From: Juan Madurga Date: Fri, 22 Jan 2016 16:42:39 +0100 Subject: [PATCH] fix pep8 --- telegram/dispatcher.py | 6 +++--- telegram/updatequeue.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/telegram/dispatcher.py b/telegram/dispatcher.py index a4839480d..ac64a2867 100644 --- a/telegram/dispatcher.py +++ b/telegram/dispatcher.py @@ -107,13 +107,13 @@ class Dispatcher: except the first word (usually the command). Example: '/add item1 item2 item3' -> ['item1', 'item2', 'item3'] For other updates, args will be None - + In some cases handlers may need some context data to process the update. To procedure just queue in update_queue.put(update, context=context) or processUpdate(update,context=context). - + context: - Extra data for handling updates. + Extra data for handling updates. For regex-based handlers, you can also request information about the match. For all other handlers, these will be None diff --git a/telegram/updatequeue.py b/telegram/updatequeue.py index 7222cc1e5..21032a4da 100644 --- a/telegram/updatequeue.py +++ b/telegram/updatequeue.py @@ -53,7 +53,6 @@ class UpdateQueue(Queue): Args: context (boolean): set true to get (update, context) - """ if not context: return Queue.get(self, block, timeout)[0]