def tonative(n, encoding='ISO-8859-1'):
        # In Python 3, the native string type is unicode
        if isinstance(n, bytes):
            return n.decode(encoding)
        return n
    # type("")
Unpack a Thrift "Stat" object into a dictionary that looks like fs.stat
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/cherrypy/cherrypy/_cpcompat.py/tonative--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/libs/hadoop/src/hadoop/fs/hadoopfs.py/HadoopFileSystem._unpack_stat