File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 12
12
from datetime import datetime
13
13
try :
14
14
from dateutil import parser as date_parser
15
- except ImportError , e :
15
+ except ImportError :
16
16
raise ImproperlyConfigured ('The "dateutil" library is required and was not found.' )
17
17
18
18
try :
19
19
JSON_DECODE_ERROR = json .JSONDecodeError # simplejson
20
20
except AttributeError :
21
- JSON_DECODE_ERROR = ValueError # Python json lib
21
+ JSON_DECODE_ERROR = ValueError # other
22
22
23
23
TIME_RE = re .compile (r'^\d{2}:\d{2}:\d{2}' )
24
24
DATE_RE = re .compile (r'^\d{4}-\d{2}-\d{2}(?!T)' )
25
25
DATETIME_RE = re .compile (r'^\d{4}-\d{2}-\d{2}T' )
26
26
27
27
class JSONDecoder (json .JSONDecoder ):
28
+ """ Recursive JSON to Python deserialization. """
28
29
29
30
_recursable_types = [str , unicode , list , dict ]
30
31
You can’t perform that action at this time.
0 commit comments