Skip to content
Snippets Groups Projects
Commit 10880c8aad85 authored by durin42's avatar durin42
Browse files

obsolete: avoid 2-argument form of enumerate, which was new in Python 2.6

parent eba48f2b9b74
No related branches found
No related tags found
No related merge requests found
......@@ -398,8 +398,8 @@
if not parents:
# mark that we explicitly recorded no parents
metadata['p0'] = ''
for i, p in enumerate(parents, 1):
metadata['p%i' % i] = node.hex(p)
for i, p in enumerate(parents):
metadata['p%i' % (i + 1)] = node.hex(p)
metadata = encodemeta(metadata)
nbsuc = len(sucs)
format = _fmfixed + (_fmnode * nbsuc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment