def join_bytes_or_unicode(prefix, suffix):
    '\n    Join two path components of either ``bytes`` or ``unicode``.\n\n    The return type is the same as the type of ``prefix``.\n    '
    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``.

The return type is the same as the type of ``prefix``.
def join_bytes_or_unicode(prefix, suffix):
    '\n    Join two path components of either ``bytes`` or ``unicode``.\n\n    The return type is the same as the type of ``prefix``.\n    '
    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()))