1. Mike Bayer
  2. changelog

Commits

Mike Bayer  committed c4dc725

fix a missing idx line bug

  • Participants
  • Parent commits 31c98f0
  • Branches default

Comments (0)

Files changed (1)

File changelog.py

View file
-__version__ = '0.1.0'
+__version__ = '0.1.1'
 
 import re
 from sphinx.util.compat import Directive
     d = {}
     d['text'] = []
     idx = 0
-    for line in content:
-        idx += 1
+    for idx, line in enumerate(content):
         m = re.match(r' *\:(.+?)\:(?: +(.+))?', line)
         if m:
             attrname, value = m.group(1, 2)