def join_bytes_or_unicode(prefix, suffix):
 if (type(prefix) == type(suffix)):
  return join(prefix, suffix)
 if isinstance(prefix, text_type):
  return join(prefix, suffix.decode(getfilesystemencoding()))
 else:
  return join(prefix, suffix.encode(getfilesystemencoding()))

def join_bytes_or_unicode ( prefix , suffix ) : if ( type ( prefix ) == type ( suffix ) ) : return join ( prefix , suffix ) if isinstance ( prefix , text_type ) : return join ( prefix , suffix . decode ( getfilesystemencoding ( ) ) ) else : return join ( prefix , suffix . encode ( getfilesystemencoding ( ) ) )
join two path components of either bytes or unicode .