mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-08 13:05:13 +08:00
Remove get_first_indentation
This commit is contained in:
1 parent
8550a52e48
commit
ad88783ac9
1 file changed
-6
@@ -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