<s> class StatusInfo ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , status_type = None , normal = None , status = None , message = None ) : <EOL> self . status_type = status_type <EOL> self . normal = normal <EOL> self . status = status <EOL> self . message = message <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % self . message <EOL> def startElement ( self , name , attrs , connection ) : <EOL> pass <EOL> def endElement ( self , name , value , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . status_type = value <EOL> elif name == '<STR_LIT>' : <EOL> if value . lower ( ) == '<STR_LIT:true>' : <EOL> self . normal = True <EOL> else : <EOL> self . normal = False <EOL> elif name == '<STR_LIT>' : <EOL> self . status = value <EOL> elif name == '<STR_LIT>' : <EOL> self . message = value <EOL> else : <EOL> setattr ( self , name , value ) </s>
