From 917fa8ec5dc22cdeb42c1b07bd2aa72c2ea60dfe Mon Sep 17 00:00:00 2001 From: Ryan Grout Date: Tue, 30 Oct 2018 14:42:11 -0500 Subject: [PATCH] Use iteritems() instead of items() --- toolz/itertoolz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolz/itertoolz.py b/toolz/itertoolz.py index 941b9a9f..577b1f19 100644 --- a/toolz/itertoolz.py +++ b/toolz/itertoolz.py @@ -884,7 +884,7 @@ def join(leftkey, leftseq, rightkey, rightseq, yield (left_default, item) if right_default != no_default: - for key, matches in d.items(): + for key, matches in iteritems(d): if key not in seen_keys: for match in matches: yield (match, right_default)