# HG changeset patch # User py4fun # Date 1312143133 -7200 # Node ID 8d928799dab54b9f9f5b2ee97c8ccefadd6f19c8 # Parent 3709cca378ff17a71e1dfb1332a539dcb2c92832 parsers: remove redundant 'n' variable in parsers.parse_index2() (issue2935) diff -r 3709cca378ff -r 8d928799dab5 mercurial/pure/parsers.py --- a/mercurial/pure/parsers.py Fri Jul 29 20:26:52 2011 +0200 +++ b/mercurial/pure/parsers.py Sun Jul 31 22:12:13 2011 +0200 @@ -36,7 +36,7 @@ s = struct.calcsize(indexformatng) index = [] cache = None - n = off = 0 + off = 0 l = len(data) - s append = index.append @@ -45,7 +45,6 @@ while off <= l: e = _unpack(indexformatng, data[off:off + s]) append(e) - n += 1 if e[1] < 0: break off += e[1] + s @@ -53,7 +52,6 @@ while off <= l: e = _unpack(indexformatng, data[off:off + s]) append(e) - n += 1 off += s if off != len(data):