Fall back to simplejson if ImportError on json

This commit is contained in:
Stein Inge Morisbak 2014-12-09 13:14:50 +01:00
parent 3fa7806ae5
commit 5a2b80ccaa

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: