def _parse_ref(text, link, info):
 if (link.find('/title/tt') != (-1)):
  yearK = re_yearKind_index.match(info)
  if (yearK and (yearK.start() == 0)):
   text += (' %s' % info[:yearK.end()])
 return (text.replace('\n', ' '), link)

def _parse_ref ( text , link , info ) : if ( link . find ( '/title/tt' ) != ( - 1 ) ) : yearK = re_yearKind_index . match ( info ) if ( yearK and ( yearK . start ( ) == 0 ) ) : text += ( ' %s' % info [ : yearK . end ( ) ] ) return ( text . replace ( '\n' , ' ' ) , link )
manage links to references .