Small fix

This commit is contained in:
Alex Root Junior 2017-07-11 23:41:40 +03:00
parent d2c99fccf4
commit 0ae4f6d948
7 changed files with 19 additions and 5 deletions

12
aiogram/utils/json.py Normal file
View file

@ -0,0 +1,12 @@
try:
import ujson as json
except ImportError:
import json
def dumps(data):
return json.dumps(data)
def loads(data):
return json.loads(data)