Mercurial > hg
comparison hgext/hgk.py @ 8624:2b3dec0ef3ae
replace xrange(0, n) with xrange(n)
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Mon, 25 May 2009 23:06:11 +0200 |
parents | 94ca38e63576 |
children | 9e055cfdd620 |
comparison
equal
deleted
inserted
replaced
8623:0c159aa7b329 | 8624:2b3dec0ef3ae |
---|---|
186 chunk = i | 186 chunk = i |
187 i = 0 | 187 i = 0 |
188 else: | 188 else: |
189 i -= chunk | 189 i -= chunk |
190 | 190 |
191 for x in xrange(0, chunk): | 191 for x in xrange(chunk): |
192 if i + x >= count: | 192 if i + x >= count: |
193 l[chunk - x:] = [0] * (chunk - x) | 193 l[chunk - x:] = [0] * (chunk - x) |
194 break | 194 break |
195 if full != None: | 195 if full != None: |
196 l[x] = repo[i + x] | 196 l[x] = repo[i + x] |