Ejemplo n.º 1
0
def guess_format(string):
    '''Guess format given an extension or a mime-type'''
    if string in ACCEPTED_MIME_TYPES:
        return ACCEPTED_MIME_TYPES[string]
    return raw_guess_format(string, FORMAT_MAP)
Ejemplo n.º 2
0
def guess_format(string):
    '''Guess format given an extension or a mime-type'''
    if string in ACCEPTED_MIME_TYPES:
        return ACCEPTED_MIME_TYPES[string]
    return raw_guess_format(string, FORMAT_MAP)
Ejemplo n.º 3
0
Archivo: rdf.py Proyecto: seiteta/udata
def guess_format(string):
    '''Guess format given an extension or a mime-type'''
    return raw_guess_format(string, FORMAT_MAP)