def _AllowBuilderStyleCalls(node):
 def RecGetLeaves(node):
  if isinstance(node, pytree.Leaf):
   return [node]
  children = []
  for child in node.children:
   children += RecGetLeaves(child)
  return children
 list_of_children = RecGetLeaves(node)
 prev_child = None
 for child in list_of_children:
  if (child.value == '.'):
   if (prev_child.lineno != child.lineno):
    pytree_utils.SetNodeAnnotation(child, pytree_utils.Annotation.SPLIT_PENALTY, 0)
  prev_child = child

def _AllowBuilderStyleCalls ( node ) : def RecGetLeaves ( node ) : if isinstance ( node , pytree . Leaf ) : return [ node ] children = [ ] for child in node . children : children += RecGetLeaves ( child ) return children list_of_children = RecGetLeaves ( node ) prev_child = None for child in list_of_children : if ( child . value == '.' ) : if ( prev_child . lineno != child . lineno ) : pytree_utils . SetNodeAnnotation ( child , pytree_utils . Annotation . SPLIT_PENALTY , 0 ) prev_child = child
allow splitting before .