def decode_filename(filename):
 if isinstance(filename, unicode):
  return filename
 else:
  return filename.decode(sys.getfilesystemencoding())

def decode_filename ( filename ) : if isinstance ( filename , unicode ) : return filename else : return filename . decode ( sys . getfilesystemencoding ( ) )
return unicode filename .