<s> """<STR_LIT>""" <EOL> from boto . ec2 . ec2object import EC2Object <EOL> class SpotPriceHistory ( EC2Object ) : <EOL> def __init__ ( self , connection = None ) : <EOL> super ( SpotPriceHistory , self ) . __init__ ( connection ) <EOL> self . price = <NUM_LIT:0.0> <EOL> self . instance_type = None <EOL> self . product_description = None <EOL> self . timestamp = None <EOL> self . availability_zone = None <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % ( self . instance_type , self . price ) <EOL> def endElement ( self , name , value , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . instance_type = value <EOL> elif name == '<STR_LIT>' : <EOL> self . price = float ( value ) <EOL> elif name == '<STR_LIT>' : <EOL> self . product_description = value <EOL> elif name == '<STR_LIT>' : <EOL> self . timestamp = value <EOL> elif name == '<STR_LIT>' : <EOL> self . availability_zone = value <EOL> else : <EOL> setattr ( self , name , value ) </s>
