mirror of
https://github.com/davidhalter/parso.git
synced 2026-08-12 19:11:34 +08:00
Remove get_first_indentation
This commit is contained in:
@@ -536,12 +536,6 @@ class _NodesTreeNode(object):
|
|||||||
first = self._children_groups[-1].children[1]
|
first = self._children_groups[-1].children[1]
|
||||||
return first.start_pos[1]
|
return first.start_pos[1]
|
||||||
|
|
||||||
def get_first_indentation(self):
|
|
||||||
if self.tree_node.type == 'suite':
|
|
||||||
# The first node in a suite is always a newline.
|
|
||||||
return self._children_groups[0].children[1].start_pos[1]
|
|
||||||
return 0
|
|
||||||
|
|
||||||
|
|
||||||
class _NodesTree(object):
|
class _NodesTree(object):
|
||||||
def __init__(self, module):
|
def __init__(self, module):
|
||||||
|
|||||||
Reference in New Issue
Block a user