def _if_none_match_passes(target_etag, etags):
 if (not target_etag):
  return True
 elif (etags == ['*']):
  return False
 else:
  target_etag = target_etag.strip('W/')
  etags = (etag.strip('W/') for etag in etags)
  return (target_etag not in etags)

def _if_none_match_passes ( target_etag , etags ) : if ( not target_etag ) : return True elif ( etags == [ '*' ] ) : return False else : target_etag = target_etag . strip ( 'W/' ) etags = ( etag . strip ( 'W/' ) for etag in etags ) return ( target_etag not in etags )
test the if-none-match comparison as defined in section 3 .