def configure(self, options, config):
Plugin.configure(self, options, config)<EOL>self.doctest_result_var = options.doctest_result_var<EOL>self.doctest_tests = options.doctest_tests<EOL>self.extension = tolist(options.doctestExtension)<EOL>self.fixtures = options.doctestFixtures<EOL>self.finder = doctest.DocTestFinder()<EOL>self.optionflags = <NUM_LIT:0><EOL>if options.doctestOptions:<EOL><INDENT>flags = "<STR_LIT:U+002C>".join(options.doctestOptions).split('<STR_LIT:U+002C>')<EOL>for flag in flags:<EOL><INDENT>try:<EOL><INDENT>if flag.startswith('<STR_LIT:+>'):<EOL><INDENT>self.optionflags |= getattr(doctest, flag[<NUM_LIT:1>:])<EOL><DEDENT>elif flag.startswith('<STR_LIT:->'):<EOL><INDENT>self.optionflags &= ~getattr(doctest, flag[<NUM_LIT:1>:])<EOL><DEDENT>else:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>" +<EOL>"<STR_LIT>" % (flag,))<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>raise ValueError("<STR_LIT>" %<EOL>(flag[<NUM_LIT:1>:],))<EOL><DEDENT><DEDENT><DEDENT>
Configure plugin.