From 800bf4bbe2fad69c29c62b55a5e374fe051ea544 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 27 Apr 2017 19:59:30 +0200 Subject: [PATCH] _NodeOrLeaf -> NodeOrLeaf. --- jedi/parser/tree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jedi/parser/tree.py b/jedi/parser/tree.py index 2f3ceaf3..db9eaef5 100644 --- a/jedi/parser/tree.py +++ b/jedi/parser/tree.py @@ -2,7 +2,7 @@ from abc import abstractmethod, abstractproperty from jedi._compatibility import utf8_repr, encoding, is_py3 -class _NodeOrLeaf(object): +class NodeOrLeaf(object): """ The base class for nodes and leaves. """ @@ -142,7 +142,7 @@ class _NodeOrLeaf(object): """ -class Leaf(_NodeOrLeaf): +class Leaf(NodeOrLeaf): __slots__ = ('value', 'parent', 'line', 'indent', 'prefix') def __init__(self, value, start_pos, prefix=''): @@ -196,7 +196,7 @@ class Leaf(_NodeOrLeaf): return "<%s: %s start=%s>" % (type(self).__name__, self.value, self.start_pos) -class BaseNode(_NodeOrLeaf): +class BaseNode(NodeOrLeaf): """ The super class for all nodes.