From 81923d6d2cc6d3b6fdb9a6c98d50d209576ebf5b Mon Sep 17 00:00:00 2001 From: Carlos Caballero Date: Mon, 6 Jul 2020 18:22:27 +0000 Subject: [PATCH] Fix git_cl -r compatibility issue with Python 3 iterkeys is no longer a thing in Python 3 Change-Id: I4d88d2a486db1e552ecac27f123219ac1e03bcaf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2276208 Commit-Queue: Carlos Caballero Reviewed-by: Edward Lesmes --- git_cl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index 4c882e62d0..2f26068906 100755 --- a/git_cl.py +++ b/git_cl.py @@ -3605,7 +3605,7 @@ def CMDissue(parser, args): if issue: issue_branch_map.setdefault(int(issue), []).append(branch) if not args: - args = sorted(issue_branch_map.iterkeys()) + args = sorted(issue_branch_map.keys()) result = {} for issue in args: try: