changeset 30400:bff77a693531

minirst: avoid shadowing a variable in a list comprehension
author Augie Fackler <augie@google.com>
date Thu, 10 Nov 2016 16:33:41 -0500
parents e124e83fd159
children 2ded17b64f09
files mercurial/minirst.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/minirst.py	Thu Nov 10 16:33:23 2016 -0500
+++ b/mercurial/minirst.py	Thu Nov 10 16:33:41 2016 -0500
@@ -697,7 +697,7 @@
         if collapse:
             synthetic.reverse()
             for s in synthetic:
-                path = [blocks[i]['lines'][0] for i in s]
+                path = [blocks[syn]['lines'][0] for syn in s]
                 real = s[-1] + 2
                 realline = blocks[real]['lines']
                 realline[0] = ('"%s"' %