def _get_templated_url(self, template, id, method=None):
        try:
            id_unicode = unicode(id, "UTF-8")
        except __HOLE__:
            id_unicode = id
        id_utf8 = id_unicode.encode("UTF-8")
        md5_of_url = hashlib.md5(id_utf8).hexdigest()
        url = template % md5_of_url
        return(url)
dataset/ETHPy150Open Impactstory/total-impact-core/totalimpact/providers/delicious.py/Delicious._get_templated_url