mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-18 15:20:42 +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
|
# set a threading.Event to notify caller thread
|
||||||
|
|
||||||
@wraps(func)
|
@wraps(func)
|
||||||
def async_func(*pargs, **kwargs):
|
def async_func(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
A wrapper to run a function in a thread
|
A wrapper to run a function in a thread
|
||||||
"""
|
"""
|
||||||
ASYNC_QUEUE.put((func, pargs, kwargs))
|
ASYNC_QUEUE.put((func, args, kwargs))
|
||||||
|
|
||||||
return async_func
|
return async_func
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue