Fall back to simplejson if ImportError on json

This commit is contained in:
Stein Inge Morisbak 2014-12-09 13:14:50 +01:00 committed by Matt Clay
parent 701a85e7fc
commit 5b56faeed2

View file

@ -131,9 +131,12 @@ EXAMPLES='''
desc=deployment
'''
import json
import datetime
import base64
try:
import json
except ImportError:
import simplejson as json
def auth_header(user, passwd, token):
if token: