Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for RHEL/CentOS old Python versions.

  • Loading branch information...
commit dc527090ac5193ea4ac50e9198ebe616f6ee9ac0 1 parent 4b4a306
@jbuchbinder jbuchbinder authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 elasticsearch/python_modules/elasticsearch.py
View
4 elasticsearch/python_modules/elasticsearch.py
@@ -1,6 +1,8 @@
#! /usr/bin/python
-import json
+try: import simplejson as json
+except ImportError: import json
+
import time
import urllib
Please sign in to comment.
Something went wrong with that request. Please try again.