From 521a5833905499e5d43d1d824c74b369c7eda899 Mon Sep 17 00:00:00 2001 From: Hyunjun Kim Date: Thu, 28 Aug 2014 16:06:30 +0900 Subject: [PATCH] Use simplejson if available. --- influxdb/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/influxdb/client.py b/influxdb/client.py index 5883df0d..1d204c26 100644 --- a/influxdb/client.py +++ b/influxdb/client.py @@ -2,7 +2,10 @@ """ python client for influxdb """ -import json +try: + import simplejson as json +except ImportError: + import json import socket import requests session = requests.Session()