Пример #1
0
 def display_path(cls, bytes):
     encodings = (cls.file_encoding,)
     return misc.fallback_decode(bytes, encodings, lossy=True)
Пример #2
0
 def label(self, value):
     if not value:
         return
     encodings = (sys.getfilesystemencoding(), 'utf8')
     self._label = fallback_decode(value, encodings, lossy=True)
Пример #3
0
 def display_path(cls, bytes):
     encodings = (cls.file_encoding, )
     return misc.fallback_decode(bytes, encodings, lossy=True)