Submitter | Yuya Nishihara |
---|---|
Date | Aug. 29, 2018, 1:43 p.m. |
Message ID | <1089fe141b360764d5a4.1535550215@mimosa> |
Download | mbox | patch |
Permalink | /patch/34143/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/minirst.py b/mercurial/minirst.py --- a/mercurial/minirst.py +++ b/mercurial/minirst.py @@ -680,7 +680,7 @@ def format(text, width=80, indent=0, kee 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 @@ def filtersections(blocks, section): return blocks -def getsections(blocks): +def _getsections(blocks): '''return a list of (section name, nesting level, blocks) tuples''' nest = "" level = 0