def _join_translated(translated_parts, os_sep_class):
res = '<STR_LIT>'<EOL>for part in translated_parts[:-<NUM_LIT:1>]:<EOL><INDENT>if part == '<STR_LIT>':<EOL><INDENT>res += part<EOL><DEDENT>else:<EOL><INDENT>res += part + os_sep_class<EOL><DEDENT><DEDENT>if translated_parts[-<NUM_LIT:1>] == '<STR_LIT>':<EOL><INDENT>res += '<STR_LIT>'<EOL>res += '<STR_LIT>'.format(os_sep_class=os_sep_class)<EOL><DEDENT>else:<EOL><INDENT>res += translated_parts[-<NUM_LIT:1>]<EOL><DEDENT>return res<EOL>
Join translated glob pattern parts.

    This is different from a simple join, as care need to be taken
    to allow ** to match ZERO or more directories.