# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-06-15 19:58:23 # Node ID e4a43b810528f814b24c1e31a4ec1899bbc613ba # Parent 20d70df64e93a474d6d685e44dc4a7bca0972552 py3: explicitly convert dict.values() to a list on py3 dict.values() returns a dict_values() object, so we need to pass it into list() explicitly to get one. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -452,7 +452,7 @@ def findcmd(cmd, table, strict=True): raise error.AmbiguousCommand(cmd, clist) if choice: - return choice.values()[0] + return list(choice.values())[0] raise error.UnknownCommand(cmd, allcmds)