def unquote(s):
    """unquote('abc%20def') -> 'abc def'."""
    res = s.split('%')
    for i in xrange(1, len(res)):
        item = res[i]
        try:
            res[i] = _hextochr[item[:2]] + item[2:]
        except __HOLE__:
            res[i] = '%' + item
    return "".join(res)
dataset/ETHPy150Open kdart/pycopia/aid/pycopia/urlparse.py/unquote