def display_path(cls, bytes): encodings = (cls.file_encoding,) return misc.fallback_decode(bytes, encodings, lossy=True)
def label(self, value): if not value: return encodings = (sys.getfilesystemencoding(), 'utf8') self._label = fallback_decode(value, encodings, lossy=True)
def display_path(cls, bytes): encodings = (cls.file_encoding, ) return misc.fallback_decode(bytes, encodings, lossy=True)