def taint(taintedSet, taintedAttribute):
 taintedSet.add(taintedAttribute)
 if (taintedAttribute == 'marker'):
  taintedSet |= set(['marker-start', 'marker-mid', 'marker-end'])
 if (taintedAttribute in ['marker-start', 'marker-mid', 'marker-end']):
  taintedSet.add('marker')
 return taintedSet

def taint ( taintedSet , taintedAttribute ) : taintedSet . add ( taintedAttribute ) if ( taintedAttribute == 'marker' ) : taintedSet |= set ( [ 'marker-start' , 'marker-mid' , 'marker-end' ] ) if ( taintedAttribute in [ 'marker-start' , 'marker-mid' , 'marker-end' ] ) : taintedSet . add ( 'marker' ) return taintedSet
adds an attribute to a set of attributes .