@classmethod<EOL><INDENT>def _parse_percentage(cls, s):<DEDENT>
m = re.match('<STR_LIT>', s)<EOL>if not m:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(<EOL>repr(s)))<EOL><DEDENT>return float(m.group(<NUM_LIT:1>)) / <NUM_LIT><EOL>
Parse string as a percentage (e.g. '42.0%') and return as float.