def fixup_indent(suite):
 kids = suite.children[::(-1)]
 while kids:
  node = kids.pop()
  if (node.type == token.INDENT):
   break
 while kids:
  node = kids.pop()
  if (isinstance(node, Leaf) and (node.type != token.DEDENT)):
   if node.prefix:
    node.prefix = u''
   return
  else:
   kids.extend(node.children[::(-1)])

def fixup_indent ( suite ) : kids = suite . children [ : : ( - 1 ) ] while kids : node = kids . pop ( ) if ( node . type == token . INDENT ) : break while kids : node = kids . pop ( ) if ( isinstance ( node , Leaf ) and ( node . type != token . DEDENT ) ) : if node . prefix : node . prefix = u'' return else : kids . extend ( node . children [ : : ( - 1 ) ] )
if an indent is followed by a thing with a prefix then nuke the prefix otherwise we get in trouble when removing __metaclass__ at suite start .