def clean_id(nid):
    try:
        nid = nid.strip(' "').strip()
        nid = unicode_helpers.remove_nonprinting_characters(nid)
    except (__HOLE__, AttributeError):
        #isn't a string.  That's ok, might be biblio
        pass
    return(nid)
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/aliases.py/clean_id