@classmethod<EOL><INDENT>def _fix_set_options(cls, options):<DEDENT>
optional_set_options = ('<STR_LIT:ignore>', '<STR_LIT>')<EOL>mandatory_set_options = ('<STR_LIT>', '<STR_LIT>')<EOL>def _get_set(value_str):<EOL><INDENT>"""<STR_LIT>"""<EOL>return cls._expand_error_codes(set(value_str.split('<STR_LIT:U+002C>')) - {'<STR_LIT>'})<EOL><DEDENT>for opt in optional_set_options:<EOL><INDENT>value = getattr(options, opt)<EOL>if value is not None:<EOL><INDENT>setattr(options, opt, _get_set(value))<EOL><DEDENT><DEDENT>for opt in mandatory_set_options:<EOL><INDENT>value = getattr(options, opt)<EOL>if value is None:<EOL><INDENT>value = '<STR_LIT>'<EOL><DEDENT>if not isinstance(value, Set):<EOL><INDENT>value = _get_set(value)<EOL><DEDENT>setattr(options, opt, value)<EOL><DEDENT>return options<EOL>
Alter the set options from None/strings to sets in place.