Merge pull request #451 from abuckenheimer/master

#449 use stdlib json module if ujson is unavailible
This commit is contained in:
Eli Uriegas 2017-02-16 14:14:45 -06:00 committed by GitHub
commit dcfb7345f0

View File

@ -4,7 +4,10 @@ from http.cookies import SimpleCookie
from httptools import parse_url from httptools import parse_url
from urllib.parse import parse_qs from urllib.parse import parse_qs
try:
from ujson import loads as json_loads from ujson import loads as json_loads
except ImportError:
from json import loads as json_loads
from sanic.exceptions import InvalidUsage from sanic.exceptions import InvalidUsage
from sanic.log import log from sanic.log import log