mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
Memorize if ujson is loaded.
This commit is contained in:
parent
3eba1c25c7
commit
ea611e9fc9
1 changed files with 2 additions and 0 deletions
|
|
@ -1,7 +1,9 @@
|
|||
try:
|
||||
import ujson as json
|
||||
IS_UJSON = True
|
||||
except ImportError:
|
||||
import json
|
||||
IS_UJSON = False
|
||||
|
||||
|
||||
def dumps(data):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue