Skip to content
Snippets Groups Projects
Commit b2feccc1 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

minirst: mark getsections() as an internal helper

parent d30867a7
No related branches found
No related tags found
No related merge requests found
......@@ -680,7 +680,7 @@
def filtersections(blocks, section):
"""Select parsed blocks under the specified section"""
parents = []
sections = getsections(blocks)
sections = _getsections(blocks)
blocks = []
i = 0
lastparents = []
......@@ -728,7 +728,7 @@
return blocks
def getsections(blocks):
def _getsections(blocks):
'''return a list of (section name, nesting level, blocks) tuples'''
nest = ""
level = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment