def _pop_arch(char_list):
logger.debug('<STR_LIT>', char_list)<EOL>arch_list = []<EOL>char = char_list.pop()<EOL>while char != '<STR_LIT:.>':<EOL><INDENT>arch_list.insert(<NUM_LIT:0>, char)<EOL>try:<EOL><INDENT>char = char_list.pop()<EOL><DEDENT>except IndexError:  <EOL><INDENT>raise RpmError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT><DEDENT>logger.debug('<STR_LIT>', arch_list)<EOL>return '<STR_LIT>'.join(arch_list)<EOL>
Pop the architecture from a version string and return it

    Returns any portion of a string following the final period. In rpm
    version strings, this corresponds to the package architecture.

    :param list char_list: an rpm version string in character list form
    :return: the parsed architecture as a string
    :rtype: str