changeset 41365 | 876494fd967d |
parent 39341 | ca2f4dabf51d |
child 41759 | aaad36b88298 |
--- a/mercurial/minirst.py Mon Sep 24 14:46:37 2018 -0700 +++ b/mercurial/minirst.py Thu Jan 17 09:17:12 2019 -0800 @@ -641,7 +641,6 @@ def parse(text, indent=0, keep=None, admonitions=None): """Parse text into a list of blocks""" - pruned = [] blocks = findblocks(text) for b in blocks: b['indent'] += indent @@ -736,7 +735,6 @@ '''return a list of (section path, nesting level, blocks) tuples''' nest = "" names = () - level = 0 secs = [] def getname(b):