Mercurial > hg
comparison hgext/remotefilelog/basepack.py @ 40613:9769e0f6ffe0
py3: don't use dict.iterkeys()
dict.iterkeys() is not present on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D5262
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 13 Nov 2018 18:08:17 +0300 |
parents | 5e3b3f88c2e4 |
children | aa588bf40a08 |
comparison
equal
deleted
inserted
replaced
40612:3fa4183e7803 | 40613:9769e0f6ffe0 |
---|---|
466 fanouttable = [EMPTYFANOUT] * params.fanoutcount | 466 fanouttable = [EMPTYFANOUT] * params.fanoutcount |
467 | 467 |
468 # Precompute the location of each entry | 468 # Precompute the location of each entry |
469 locations = {} | 469 locations = {} |
470 count = 0 | 470 count = 0 |
471 for node in sorted(self.entries.iterkeys()): | 471 for node in sorted(self.entries): |
472 location = count * self.INDEXENTRYLENGTH | 472 location = count * self.INDEXENTRYLENGTH |
473 locations[node] = location | 473 locations[node] = location |
474 count += 1 | 474 count += 1 |
475 | 475 |
476 # Must use [0] on the unpack result since it's always a tuple. | 476 # Must use [0] on the unpack result since it's always a tuple. |