py3: don't use dict.iterkeys() in hgext/fastannotate/context.py
authorPulkit Goyal <pulkit@yandex-team.ru>
Sat, 01 Sep 2018 02:16:22 +0530
changeset 39380 1099d9bbdf9a
parent 39379 b64d36e5ca31
child 39381 f5e9d074d70a
py3: don't use dict.iterkeys() in hgext/fastannotate/context.py dict.iterkeys() is not present on Python 3. Differential Revision: https://phab.mercurial-scm.org/D4431
hgext/fastannotate/context.py
--- a/hgext/fastannotate/context.py	Wed Aug 29 23:39:58 2018 -0400
+++ b/hgext/fastannotate/context.py	Sat Sep 01 02:16:22 2018 +0530
@@ -133,7 +133,7 @@
 def hashdiffopts(diffopts):
     diffoptstr = str(sorted(
         (k, getattr(diffopts, k))
-        for k in mdiff.diffopts.defaults.iterkeys()
+        for k in mdiff.diffopts.defaults
     ))
     return hashlib.sha1(diffoptstr).hexdigest()[:6]