# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1519468497 -19800 # Node ID e9bcc2efb7e870c0b5a0308daf28630ca97e5cfa # Parent 3fe0507a4dcd9d09e0b2ecfbea038af3d18cd99b py3: convert dict.items() to list explicitly On python 3, dict.items() returns a dict_items object which cannot be sorted. Differential Revision: https://phab.mercurial-scm.org/D2415 diff -r 3fe0507a4dcd -r e9bcc2efb7e8 hgext/churn.py --- a/hgext/churn.py Sat Feb 24 15:35:00 2018 +0530 +++ b/hgext/churn.py Sat Feb 24 16:04:57 2018 +0530 @@ -171,7 +171,7 @@ ui.warn(_("skipping malformed alias: %s\n") % l) continue - rate = countrate(ui, repo, amap, *pats, **opts).items() + rate = list(countrate(ui, repo, amap, *pats, **opts).items()) if not rate: return