def fix_target(target, unit):
 if (target == []):
  return (target, [])
 fixups = []
 for (dummy, fix) in AUTOFIXES.items():
  (target, fixed) = fix.fix_target(target, unit)
  if fixed:
   fixups.append(fix.name)
 return (target, fixups)

def fix_target ( target , unit ) : if ( target == [ ] ) : return ( target , [ ] ) fixups = [ ] for ( dummy , fix ) in AUTOFIXES . items ( ) : ( target , fixed ) = fix . fix_target ( target , unit ) if fixed : fixups . append ( fix . name ) return ( target , fixups )
apply each autofix to the target translation .