support for python 2.5
This commit is contained in:
parent
aa106baf51
commit
0d54102520
3 changed files with 12 additions and 9 deletions
|
@ -20,8 +20,13 @@
|
|||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
from __future__ import with_statement
|
||||
import sys
|
||||
|
||||
if sys.version_info < (2, 6):
|
||||
import simplejson as json
|
||||
else:
|
||||
import json
|
||||
|
||||
try:
|
||||
import gevent, gevent.monkey
|
||||
gevent.monkey.patch_all(dns=gevent.version_info[0]>=1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue