From 6331c2e1f125e385391f35b5fceada9e1d7b18dd Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Sat, 6 Dec 2014 19:42:42 -0500 Subject: [PATCH] IAM py3 fix. --- moto/iam/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/iam/models.py b/moto/iam/models.py index 477be66fa..ebb25b66d 100644 --- a/moto/iam/models.py +++ b/moto/iam/models.py @@ -222,7 +222,7 @@ class IAMBackend(BaseBackend): def get_role_policy(self, role_name, policy_name): role = self.get_role(role_name) if role: - for p, d in role.policies.iteritems(): + for p, d in role.policies.items(): if p == policy_name: return p, d else: