From c28763c5bee9ce7a5417528af5bed10c2879f862 Mon Sep 17 00:00:00 2001 From: Noam Meltzer Date: Wed, 1 Jun 2016 21:11:00 +0300 Subject: [PATCH] dispatcher: cosmetic fix --- telegram/ext/dispatcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram/ext/dispatcher.py b/telegram/ext/dispatcher.py index e10ccee6f..85180a2db 100644 --- a/telegram/ext/dispatcher.py +++ b/telegram/ext/dispatcher.py @@ -73,11 +73,11 @@ def run_async(func): # set a threading.Event to notify caller thread @wraps(func) - def async_func(*pargs, **kwargs): + def async_func(*args, **kwargs): """ A wrapper to run a function in a thread """ - ASYNC_QUEUE.put((func, pargs, kwargs)) + ASYNC_QUEUE.put((func, args, kwargs)) return async_func