mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-11 05:53:32 +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]
|
||||
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):
|
||||
def __init__(self, module):
|
||||
|
||||
Reference in New Issue
Block a user