def tostr(b):
    if not PY3K:
        return b

    # [ ] figure out how to print non-utf-8 filenames without
    #     information loss
    return b.decode('utf-8')


# ------------------------------------------------
# Logging is controlled by logger named after the
# module name (e.g. 'patch' for patch.py module)
Python 3 bytes encoder. Used to print filename in
dataset/ETHPy150Open ensime/ensime-sublime/patch.py/tostr