Use self.__class__ to instantiate a TreeNode item recursively, to
allow subclassing.
1 file changed