environment/lib/python2.7/site-packages/IPython/utils/jsonutil.py
def extract_dates(obj):
    """extract ISO8601 dates from unpacked JSON"""
    if isinstance(obj, dict):
        obj = dict(obj) # don't clobber
        for k,v in obj.iteritems():
            obj[k] = extract_dates(v)
    elif isinstance(obj, (list, tuple)):
        obj = [ extract_dates(o) for o in obj ]
    elif isinstance(obj, basestring):
        if ISO8601_PAT.match(obj):
            obj = datetime.strptime(obj, ISO8601)
    return obj
def extract_dates(obj):
    """extract ISO8601 dates from unpacked JSON"""
    if isinstance(obj, dict):
        obj = dict(obj) # don't clobber
        for k,v in obj.iteritems():
            obj[k] = extract_dates(v)
    elif isinstance(obj, (list, tuple)):
        obj = [ extract_dates(o) for o in obj ]
    elif isinstance(obj, basestring):
        if ISO8601_PAT.match(obj):
            obj = datetime.strptime(obj, ISO8601)
    return obj
def extract_dates ( obj ) : if isinstance ( obj , dict ) : obj = dict ( obj ) # don't clobber for k , v in obj . iteritems ( ) : obj [ k ] = extract_dates ( v ) elif isinstance ( obj , ( list , tuple ) ) : obj = [ extract_dates ( o ) for o in obj ] elif isinstance ( obj , basestring ) : if ISO8601_PAT . match ( obj ) : obj = datetime . strptime ( obj , ISO8601 ) return obj
extract ISO8601 dates from unpacked JSON
extract ISO8601 dates from unpacked JSON