<s> """<STR_LIT>""" <EOL> from docutils . parsers import rst <EOL> from docutils . nodes import Admonition , Element <EOL> from docutils . parsers . rst import directives <EOL> class OddEvenNode ( Admonition , Element ) : <EOL> pass <EOL> class OddEven ( rst . Directive ) : <EOL> """<STR_LIT>""" <EOL> required_arguments = <NUM_LIT:0> <EOL> optional_arguments = <NUM_LIT:0> <EOL> final_argument_whitespace = True <EOL> option_spec = { } <EOL> has_content = True <EOL> def run ( self ) : <EOL> self . assert_has_content ( ) <EOL> text = '<STR_LIT:\n>' . join ( self . content ) <EOL> node = OddEvenNode ( ) <EOL> self . state . nested_parse ( self . content , self . content_offset , node ) <EOL> return [ node ] <EOL> directives . register_directive ( "<STR_LIT>" , OddEven ) </s>
