Use distributed-with-python-since-2.6 json if simplejson isn't available
This commit is contained in:
parent
bb32598bae
commit
ef5e4cb2ad
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue