changeset 37178:e9bcc2efb7e8

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 24 Feb 2018 16:04:57 +0530
parents 3fe0507a4dcd
children 54f4328a07c2
files hgext/churn.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/churn.py
+++ b/hgext/churn.py
@@ -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