def extract_flags_from_text(self, text):
flags = set()<EOL>reversed_flags_repr = {v: k for k, v in self.flags_repr.items()}<EOL>for flag_repr in text:<EOL><INDENT>if flag_repr not in reversed_flags_repr:<EOL><INDENT>raise KeyError("<STR_LIT>" % flag_repr)<EOL><DEDENT>else:<EOL><INDENT>flags.add(reversed_flags_repr[flag_repr])<EOL><DEDENT><DEDENT>return flags<EOL>
Extract the flags from the given text and return a :class:`set` of flag values. See
:class:`~taxi.timesheet.lines.Entry` for a list of existing flags.