def increment_lineno(node, n=1):
 for node in zip((node,), walk(node)):
  if ('lineno' in node._attributes):
   node.lineno = (getattr(node, 'lineno', 0) + n)

def increment_lineno ( node , n = 1 ) : for node in zip ( ( node , ) , walk ( node ) ) : if ( 'lineno' in node . _attributes ) : node . lineno = ( getattr ( node , 'lineno' , 0 ) + n )
increment the line number of each node in the tree starting at *node* by *n* .