D5262: py3: don't use dict.iterkeys()

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Tue Nov 13 13:46:53 EST 2018


indygreg added inline comments.

INLINE COMMENTS

> repack.py:510
>              ancestors = {}
> -            nodes = list(node for node in entries.iterkeys())
> +            nodes = list(node for node in entries)
>              nohistory = []

This can be reduced to `list(entries)`.

> repack.py:646
>              ancestors = {}
> -            nodes = list(node for node in entries.iterkeys())
> +            nodes = list(node for node in entries)
>  

Ditto.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5262

To: pulkit, #hg-reviewers
Cc: indygreg, mercurial-devel


More information about the Mercurial-devel mailing list