From b8a11b7b8d0c048d446a88e969eaa92f10ded769 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Wed, 7 Jan 2015 21:40:03 -0500 Subject: [PATCH] Python 3 fixes. --- moto/cloudformation/parsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/cloudformation/parsing.py b/moto/cloudformation/parsing.py index 23940f081..48881a0a4 100644 --- a/moto/cloudformation/parsing.py +++ b/moto/cloudformation/parsing.py @@ -164,10 +164,10 @@ def parse_condition(condition, resources_map): if isinstance(condition, bool): return condition - condition_operator = condition.keys()[0] + condition_operator = list(condition.keys())[0] condition_values = [] - for value in condition.values()[0]: + for value in list(condition.values())[0]: # Check if we are referencing another Condition if 'Condition' in value: condition_values.append(resources_map[value['Condition']])