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
--- 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]