mercurial/hgweb/common.py
changeset 6122 800e2756c9ab
parent 4462 12e4d9524951
child 6123 f7f25f58693a
equal deleted inserted replaced
5472:23889160905a 6122:800e2756c9ab
    74         count += 1
    74         count += 1
    75         if stripecount and count >= stripecount:
    75         if stripecount and count >= stripecount:
    76             parity = 1 - parity
    76             parity = 1 - parity
    77             count = 0
    77             count = 0
    78 
    78 
       
    79 def countgen(start=0, step=1):
       
    80     """count forever -- useful for line numbers"""
       
    81     while True:
       
    82         yield start
       
    83         start += step
       
    84