mercurial/pycompat.py
changeset 43104 74802979dd9d
parent 43103 c95b2f40db7c
child 43105 649d3ac37a12
--- a/mercurial/pycompat.py	Sun Oct 06 17:45:05 2019 -0400
+++ b/mercurial/pycompat.py	Sun Oct 06 17:59:15 2019 -0400
@@ -337,6 +337,7 @@
         ret = shlex.split(s.decode('latin-1'), comments, posix)
         return [a.encode('latin-1') for a in ret]
 
+    itervalues = lambda x: x.values()
 
 else:
     import cStringIO
@@ -413,6 +414,7 @@
     ziplist = zip
     rawinput = raw_input
     getargspec = inspect.getargspec
+    itervalues = lambda x: x.itervalues()
 
 isjython = sysplatform.startswith(b'java')