--- a/mercurial/pycompat.py Sun Oct 06 19:25:18 2019 -0400
+++ b/mercurial/pycompat.py Mon Oct 07 00:04:04 2019 -0400
@@ -316,7 +316,7 @@
they can be passed as keyword arguments as dictonaries with bytes keys
can't be passed as keyword arguments to functions on Python 3.
"""
- dic = dict((k.decode('latin-1'), v) for k, v in dic.iteritems())
+ dic = dict((k.decode('latin-1'), v) for k, v in dic.items())
return dic
def byteskwargs(dic):
@@ -324,7 +324,7 @@
Converts keys of python dictonaries to bytes as they were converted to
str to pass that dictonary as a keyword argument on Python 3.
"""
- dic = dict((k.encode('latin-1'), v) for k, v in dic.iteritems())
+ dic = dict((k.encode('latin-1'), v) for k, v in dic.items())
return dic
# TODO: handle shlex.shlex().