def normstr(s):
    try:
        # Python 3.x
        result = str(s,'utf-8')
    except __HOLE__:
        # Python 2.x
        result = s
    return result
dataset/ETHPy150Open astraw/stdeb/stdeb/util.py/normstr