#NEWLINE# def link( self , rel ) : #NEWLINE# #INDENT# 'Look for link with specified rel, return else None\n\n        Searches through dicts in self.ln looking for one with the\n        specified rel value. If there are multiple links with the \n        same rel then just the first will be returned\n        ' #NEWLINE# if ( self . ln is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# for link in self . ln : #NEWLINE# #INDENT# if ( ( 'rel' in link ) and ( rel [ 'rel' ] == rel ) ) : #NEWLINE# #INDENT# return link #NEWLINE# #UNINDENT# #UNINDENT# return None