File tree Expand file tree Collapse file tree 3 files changed +12
-23
lines changed Expand file tree Collapse file tree 3 files changed +12
-23
lines changed Original file line number Diff line number Diff line change 1
1
import urllib
2
2
from oauth2 import OAuth2Request
3
3
import re
4
-
5
- try :
6
- import simplejson
7
- except ImportError :
8
- try :
9
- import json as simplejson
10
- except ImportError :
11
- try :
12
- from django .utils import simplejson
13
- except ImportError :
14
- raise ImportError ('A json library is required to use this python library. Lol, yay for being verbose. ;)' )
4
+ from json_import import simplejson
15
5
16
6
re_path_template = re .compile ('{\w+}' )
17
7
Original file line number Diff line number Diff line change
1
+ try :
2
+ import simplejson
3
+ except ImportError :
4
+ try :
5
+ import json as simplejson
6
+ except ImportError :
7
+ try :
8
+ from django .utils import simplejson
9
+ except ImportError :
10
+ raise ImportError ('A json library is required to use this python library' )
Original file line number Diff line number Diff line change 1
1
import hmac
2
2
import hashlib
3
-
4
- try :
5
- import simplejson
6
- except ImportError :
7
- try :
8
- import json as simplejson
9
- except ImportError :
10
- try :
11
- from django .utils import simplejson
12
- except ImportError :
13
- raise ImportError ('A json library is required to use this python library. Lol, yay for being verbose. ;)' )
14
-
3
+ from json_import import simplejson
15
4
16
5
class SubscriptionType :
17
6
TAG = 'tag'
You can’t perform that action at this time.
0 commit comments