minirst: avoid shadowing a variable in a list comprehension
authorAugie Fackler <augie@google.com>
Thu, 10 Nov 2016 16:33:41 -0500
changeset 30390 bff77a693531
parent 30389 e124e83fd159
child 30391 2ded17b64f09
minirst: avoid shadowing a variable in a list comprehension
mercurial/minirst.py
--- 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"' %