<s> class OptionBuilder ( object ) : <EOL> """<STR_LIT>""" <EOL> class OptionEntry ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , key , value = None ) : <EOL> """<STR_LIT>""" <EOL> self . key = key <EOL> self . value = value <EOL> def __str__ ( self ) : <EOL> if self . value is None : <EOL> return self . key <EOL> else : <EOL> return self . key + '<STR_LIT:=>' + self . value <EOL> def __eq__ ( self , other ) : <EOL> return self . key == other . key and self . value == other . value <EOL> def __hash__ ( self ) : <EOL> return hash ( str ( self ) ) <EOL> def __init__ ( self ) : <EOL> self . _args = [ ] <EOL> def __eq__ ( self , other ) : <EOL> return self . _args == other . _args <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT:U+0020>' . join ( [ str ( entry ) for entry in self . _args ] ) <EOL> def __iter__ ( self ) : <EOL> return iter ( self . _args ) <EOL> def add ( self , key , value = None ) : <EOL> """<STR_LIT>""" <EOL> entry = OptionBuilder . OptionEntry ( key , value ) <EOL> self . _args . append ( entry ) </s>
