Mercurial > hg
changeset 39340:b2feccc199c2
minirst: mark getsections() as an internal helper
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 05 Aug 2018 13:34:58 +0900 |
parents | d30867a745a1 |
children | ca2f4dabf51d |
files | mercurial/minirst.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/minirst.py Sun Aug 05 12:42:10 2018 +0900 +++ b/mercurial/minirst.py Sun Aug 05 13:34:58 2018 +0900 @@ -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