<s> """<STR_LIT>""" <EOL> class Link ( object ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = [ '<STR_LIT:url>' , '<STR_LIT:text>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> def __init__ ( self , url , text = '<STR_LIT>' , fragment = '<STR_LIT>' , nofollow = False ) : <EOL> if isinstance ( url , unicode ) : <EOL> import warnings <EOL> warnings . warn ( "<STR_LIT>" "<STR_LIT>" ) <EOL> url = url . encode ( '<STR_LIT:utf-8>' ) <EOL> self . url = url <EOL> self . text = text <EOL> self . fragment = fragment <EOL> self . nofollow = nofollow <EOL> def __eq__ ( self , other ) : <EOL> return self . url == other . url and self . text == other . text and self . fragment == other . fragment and self . nofollow == other . nofollow <EOL> def __hash__ ( self ) : <EOL> return hash ( self . url ) ^ hash ( self . text ) ^ hash ( self . fragment ) ^ hash ( self . nofollow ) <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % ( self . url , self . text , self . fragment , self . nofollow ) </s>
