@@ -1464,8 +1464,8 @@ def format(self, value, buffer=None):
14641464 return output .getvalue ()
14651465
14661466
1467- class RecursiveDecentFormatter (BasicFormatter ):
1468- """The recursive decent formatter prints the value and the decendents .
1467+ class RecursiveDescentFormatter (BasicFormatter ):
1468+ """The recursive descent formatter prints the value and the descendents .
14691469
14701470 The constructor takes two keyword args: indent_level, which defaults to 0,
14711471 and indent_child, which defaults to 2. The current indentation level is
@@ -1482,15 +1482,14 @@ def format(self, value, buffer=None):
14821482 output = io .StringIO ()
14831483 else :
14841484 output = buffer
1485-
14861485 BasicFormatter .format (self , value , buffer = output , indent = self .lindent )
14871486 new_indent = self .lindent + self .cindent
14881487 for child in value :
14891488 if child .GetSummary () is not None :
14901489 BasicFormatter .format (self , child , buffer = output , indent = new_indent )
14911490 else :
14921491 if child .GetNumChildren () > 0 :
1493- rdf = RecursiveDecentFormatter (indent_level = new_indent )
1492+ rdf = RecursiveDescentFormatter (indent_level = new_indent )
14941493 rdf .format (child , buffer = output )
14951494 else :
14961495 BasicFormatter .format (self , child , buffer = output , indent = new_indent )
0 commit comments