Merge branch 'use-timeout'

This commit is contained in:
Jannes Höke 2016-07-04 21:56:26 +02:00
commit c2cce40299
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
**2016-07-04**
*Released 4.3.2*
- Fix: Use ``timeout`` parameter in all API methods
**2016-06-29**
*Released 4.3.1*

View file

@ -82,7 +82,7 @@ from .update import Update
from .bot import Bot
__author__ = 'devs@python-telegram-bot.org'
__version__ = '4.3.1'
__version__ = '4.3.2'
__all__ = ['Audio', 'Bot', 'Chat', 'ChatMember', 'ChatAction', 'ChosenInlineResult',
'CallbackQuery', 'Contact', 'Document', 'Emoji', 'File', 'ForceReply',
'InlineKeyboardButton', 'InlineKeyboardMarkup', 'InlineQuery', 'InlineQueryResult',

View file

@ -171,7 +171,8 @@ def post(url, data, timeout=None):
result = _request_wrapper('POST',
url,
body=data.encode(),
headers={'Content-Type': 'application/json'})
headers={'Content-Type': 'application/json'},
**urlopen_kwargs)
return _parse(result)