docs: def _pop_arch(char_list):
      """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
      """
      logger.debug('_pop_arch(%s)', char_list)
      arch_list = []
      char = char_list.pop()
      while char != '.':
          arch_list.insert(0, char)
          try:
              char = char_list.pop()
          except IndexError:  # Raised for a string with no periods
              raise RpmError('Could not parse an architecture. Did you mean to '
                             'set the arch_included flag to False?')
      logger.debug('arch chars: %s', arch_list)
      return ''.join(arch_list)