From eba0c37fb6ad2150d0fa3100f7300ffb9d1131b3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 22 2015 16:03:00 +0000 Subject: Add a dependency to simplejson but fallback on the default if absent --- diff --git a/mdapi/__init__.py b/mdapi/__init__.py index 7c24a9c..94be1af 100644 --- a/mdapi/__init__.py +++ b/mdapi/__init__.py @@ -24,7 +24,10 @@ Top level of the mdapi Flask application. ''' import os -import json +try: + import simplejson as json +except ImportError: + import json import asyncio from aiohttp import web diff --git a/requirements.txt b/requirements.txt index 6e997d8..5dbf15e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ aiohttp +simplejson sqlalchemy