From 17c731921ec62aefad20608b4d04f358ec262194 Mon Sep 17 00:00:00 2001 From: Bleno Date: Wed, 2 Dec 2015 15:31:19 -0200 Subject: [PATCH] Compatibility with python 3 Compatibility with python 3 --- nested_lookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nested_lookup.py b/nested_lookup.py index f22cd2d..fd4b97a 100644 --- a/nested_lookup.py +++ b/nested_lookup.py @@ -10,7 +10,7 @@ def _nested_lookup(key, document): yield result if isinstance(document, dict): - for k, v in document.iteritems(): + for k, v in document.items(): if k == key: yield v elif isinstance(v, dict):