File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1818# along with this program. If not, see [http://www.gnu.org/licenses/].
1919"""Base class for Telegram Objects."""
2020
21- import json
21+ try :
22+ import ujson as json
23+ except ImportError :
24+ import json
25+
2226from abc import ABCMeta
2327
2428
Original file line number Diff line number Diff line change 1818# along with this program. If not, see [http://www.gnu.org/licenses/].
1919"""This module contains methods to make POST and GET requests"""
2020
21- import json
21+ try :
22+ import ujson as json
23+ except ImportError :
24+ import json
2225import os
2326import socket
2427import logging
Original file line number Diff line number Diff line change 33from telegram import Update
44from future .utils import bytes_to_native_str
55from threading import Lock
6- import json
6+ try :
7+ import ujson as json
8+ except ImportError :
9+ import json
710try :
811 import BaseHTTPServer
912except ImportError :
You can’t perform that action at this time.
0 commit comments