From d89dce258337f27b20af2f10ce1ee158e2030a6e Mon Sep 17 00:00:00 2001 From: Tyler Sanders Date: Mon, 17 Nov 2014 08:54:06 -0600 Subject: [PATCH] Use items() instead of iteritems() for Python 3 compatibility --- moto/ec2/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/ec2/models.py b/moto/ec2/models.py index 8c65553a..63738695 100644 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -2331,11 +2331,11 @@ class NetworkAclBackend(object): network_acl_id): # lookup existing association for subnet and delete it - default_acl = next(value for key, value in self.network_acls.iteritems() + default_acl = next(value for key, value in self.network_acls.items() if association_id in value.associations.keys()) subnet_id = None - for key, value in default_acl.associations.iteritems(): + for key, value in default_acl.associations.items(): if key == association_id: subnet_id = default_acl.associations[key].subnet_id del default_acl.associations[key]