1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Add ujson support.

This commit is contained in:
eternnoir 2016-09-12 16:38:54 +08:00
parent 404f81fd43
commit 590b27ca8a
2 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,9 @@ setup(name='pyTelegramBotAPI',
license='GPL2',
keywords='telegram bot api tools',
install_requires=['requests', 'six'],
extras_require={
'json': 'ujson',
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2',

View File

@ -1,6 +1,10 @@
# -*- coding: utf-8 -*-
import json
try:
import ujson as json
except ImportError:
import json
import six
from telebot import util