Fix missing enumerate() in btree.py

This commit is contained in:
Sam Fuller 2021-04-11 16:59:38 -07:00 committed by GitHub
parent e2cc5b1280
commit b44a2f9cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ def make_btree(records, bthKeyLen, blksize):
# Populate the bitmap (1 = used)
headnode.records[2] = bitmanip.bits(2048, len(nodelist))
for i, mnode in mapnodes:
for i, mnode in enumerate(mapnodes):
nset = len(nodelist) - 2048 - i*3952
mnode.records = [bitmanip.bits(3952, nset)]