mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-31 16:40:53 +01:00
dispatcher: cosmetic fix
This commit is contained in:
parent
dd8b6219b9
commit
c28763c5be
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue