Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/lib2to3/pytree.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Base(object):
# Default values for instance variables
type = None # int: token number (< 256) or symbol number (>= 256)
parent = None # Parent node pointer, or None
children = () # Tuple of subnodes
children = [] # List of subnodes
was_changed = False
was_checked = False

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:class:`lib2to3.pytree.Base` sets the `children` attribute to an empty
list to be more consistent with :class:`lib2to3.pytree.Node`.