def post_process_filtered_equals(opcodes):
 cur_chunk = None
 for (tag, i1, i2, j1, j2, meta) in opcodes:
  if (((tag == u'equal') and (not meta.get(u'indentation_changes'))) or (tag == u'filtered-equal')):
   if cur_chunk:
    i1 = cur_chunk[1]
    j1 = cur_chunk[3]
    meta = cur_chunk[5]
   cur_chunk = (u'equal', i1, i2, j1, j2, meta)
  else:
   if cur_chunk:
    (yield cur_chunk)
    cur_chunk = None
   (yield (tag, i1, i2, j1, j2, meta))
 if cur_chunk:
  (yield cur_chunk)

def post_process_filtered_equals ( opcodes ) : cur_chunk = None for ( tag , i1 , i2 , j1 , j2 , meta ) in opcodes : if ( ( ( tag == u'equal' ) and ( not meta . get ( u'indentation_changes' ) ) ) or ( tag == u'filtered-equal' ) ) : if cur_chunk : i1 = cur_chunk [ 1 ] j1 = cur_chunk [ 3 ] meta = cur_chunk [ 5 ] cur_chunk = ( u'equal' , i1 , i2 , j1 , j2 , meta ) else : if cur_chunk : ( yield cur_chunk ) cur_chunk = None ( yield ( tag , i1 , i2 , j1 , j2 , meta ) ) if cur_chunk : ( yield cur_chunk )
post-processes filtered-equal and equal chunks from interdiffs .