def linkify_only_full_urls(attrs, new=False):
 if (not new):
  return attrs
 if (not attrs['_text'].startswith(('http:', 'https:'))):
  return None
 return attrs

def linkify_only_full_urls ( attrs , new = False ) : if ( not new ) : return attrs if ( not attrs [ '_text' ] . startswith ( ( 'http:' , 'https:' ) ) ) : return None return attrs
linkify only full links .