Fall back to simplejson if ImportError on json
This commit is contained in:
parent
3fa7806ae5
commit
5a2b80ccaa
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