def _to_unicode_if_str(s):
    if isinstance(s, str):
        try:
            return s.decode('utf-8')
        except __HOLE__:
            return s.decode('latin-1')
    else:
        return s
dataset/ETHPy150Open wgnet/webium/webium/cookie.py/_to_unicode_if_str