<s> """<STR_LIT>""" <EOL> from bagpipe . exabgp . message . update . attribute import AttributeID , Flag , Attribute <EOL> class Origin ( Attribute ) : <EOL> ID = AttributeID . ORIGIN <EOL> FLAG = Flag . TRANSITIVE <EOL> MULTIPLE = False <EOL> IGP = <NUM_LIT> <EOL> EGP = <NUM_LIT> <EOL> INCOMPLETE = <NUM_LIT> <EOL> def __init__ ( self , origin ) : <EOL> self . origin = origin <EOL> def pack ( self ) : <EOL> return self . _attribute ( chr ( self . origin ) ) <EOL> def __len__ ( self ) : <EOL> return len ( self . pack ( ) ) <EOL> def __str__ ( self ) : <EOL> if self . origin == <NUM_LIT> : return '<STR_LIT>' <EOL> if self . origin == <NUM_LIT> : return '<STR_LIT>' <EOL> if self . origin == <NUM_LIT> : return '<STR_LIT>' <EOL> return '<STR_LIT>' <EOL> def __repr__ ( self ) : <EOL> return str ( self ) <EOL> def __cmp__ ( self , other ) : <EOL> if ( not isinstance ( other , Origin ) <EOL> or ( self . origin != other . origin ) <EOL> ) : <EOL> return - <NUM_LIT:1> <EOL> else : <EOL> return <NUM_LIT:0> </s>
