Use distributed-with-python-since-2.6 json if simplejson isn't available

This commit is contained in:
Alexander van Gessel 2011-11-06 19:38:21 +01:00
parent bb32598bae
commit ef5e4cb2ad

View file

@ -7,7 +7,12 @@ the command line git tool.
import logging
import os
import simplejson as json
try:
# Externally distributed, usually more up-to-date
import simplejson as json
except:
# Distributed with python since 2.6
import json
import subprocess
import urllib2