[PATCH 3 of 4] minirst: mark getsections() as an internal helper

Yuya Nishihara yuya at tcha.org
Wed Aug 29 09:43:35 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1533443698 -32400
#      Sun Aug 05 13:34:58 2018 +0900
# Node ID 1089fe141b360764d5a413ea87f382a22f898499
# Parent  656e548c9349e1e98e166a67a7a6193e237ca613
minirst: mark getsections() as an internal helper

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


More information about the Mercurial-devel mailing list