(doc)
return uuid.UUID(doc["$uuid"])
Decode a JSON legacy $uuid to Python UUID.
Decode a JSON legacy $uuid to Python UUID.
Decode a JSON legacy $uuid to Python UUID .
def _parse_legacy_uuid(doc):
    """Decode a JSON legacy $uuid to Python UUID."""
    if len(doc) != 1:
        raise TypeError('Bad $uuid, extra field(s): %s' % (doc,))
    return uuid.UUID(doc["$uuid"])
def _parse_legacy_uuid ( doc ) : if len ( doc ) != 1 : raise TypeError ( 'Bad $uuid, extra field(s): %s' % ( doc , ) ) return uuid . UUID ( doc [ "$uuid" ] )