diff options
author | Yang Zhao <yang.zhao@skyboxlabs.com> | 2019-12-13 15:52:45 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-15 12:53:40 -0800 |
commit | 2e2aa8d9032ccdfdecaab51c60c5bada517f60bc (patch) | |
tree | 9fc2442e8b012afdf707650ad73627eb3dd75d7c /t/t8005 | |
parent | git-p4: use functools.reduce instead of reduce (diff) | |
download | tgif-2e2aa8d9032ccdfdecaab51c60c5bada517f60bc.tar.xz |
git-p4: use dict.items() iteration for python3 compatibility
Python3 uses dict.items() instead of .iteritems() to provide
iteratoration over dict. Although items() is technically less efficient
for python2.7 (allocates a new list instead of simply iterating), the
amount of data involved is very small and the penalty negligible.
Signed-off-by: Yang Zhao <yang.zhao@skyboxlabs.com>
Reviewed-by: Ben Keene <seraphire@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t8005')
0 files changed, 0 insertions, 0 deletions