parameters: (self, filename)
docstring: convert filename to unicode in order to display it in Tk
docstring_summary: convert filename to unicode in order to display it in Tk
docstring_tokens: convert filename to unicode in order to display it in Tk
function: def _filename_to_unicode(self, filename):
          """convert filename to unicode in order to display it in Tk"""
          if isinstance(filename, unicode) or not filename:
              return filename
          else:
              try:
                  return filename.decode(self.filesystemencoding)
              except UnicodeDecodeError:
                  # XXX
                  try:
                      return filename.decode(self.encoding)
                  except UnicodeDecodeError:
                      # byte-to-byte conversion
                      return filename.decode('iso8859-1')
function_tokens: def _filename_to_unicode ( self , filename ) : if isinstance ( filename , unicode ) or not filename : return filename else : try : return filename . decode ( self . filesystemencoding ) except UnicodeDecodeError : # XXX try : return filename . decode ( self . encoding ) except UnicodeDecodeError : # byte-to-byte conversion return filename . decode ( 'iso8859-1' )