<s> class RegionInfo ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , connection = None , name = None , endpoint = None , <EOL> connection_cls = None ) : <EOL> self . connection = connection <EOL> self . name = name <EOL> self . endpoint = endpoint <EOL> self . connection_cls = connection_cls <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % self . name <EOL> def startElement ( self , name , attrs , connection ) : <EOL> return None <EOL> def endElement ( self , name , value , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . name = value <EOL> elif name == '<STR_LIT>' : <EOL> self . endpoint = value <EOL> else : <EOL> setattr ( self , name , value ) <EOL> def connect ( self , ** kw_params ) : <EOL> """<STR_LIT>""" <EOL> if self . connection_cls : <EOL> return self . connection_cls ( region = self , ** kw_params ) </s>
