def _pop_digits(char_list):
logger.debug('<STR_LIT>', char_list)<EOL>digits = []<EOL>while len(char_list) != <NUM_LIT:0> and char_list[<NUM_LIT:0>].isdigit():<EOL><INDENT>digits.append(char_list.pop(<NUM_LIT:0>))<EOL><DEDENT>logger.debug('<STR_LIT>', digits)<EOL>logger.debug('<STR_LIT>', char_list)<EOL>return digits<EOL>
Pop consecutive digits from the front of list and return them

    Pops any and all consecutive digits from the start of the provided
    character list and returns them as a list of string digits.
    Operates on (and possibly alters) the passed list.

    :param list char_list: a list of characters
    :return: a list of string digits
    :rtype: list