Fall back to simplejson if ImportError on json
This commit is contained in:
parent
701a85e7fc
commit
5b56faeed2
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue