From 4d25a2772d3636bf7686aa33b81709e5f2d7b008 Mon Sep 17 00:00:00 2001 From: Greg Hill Date: Wed, 20 Jul 2016 09:01:46 -0500 Subject: [PATCH] Fix py3k regression in 0.8.3 .items() works in both. This dictionary won't ever be especially large, so the performance hit for not using an iterator in py27 is negligible. --- marathon/models/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marathon/models/app.py b/marathon/models/app.py index 064db06..281ee19 100644 --- a/marathon/models/app.py +++ b/marathon/models/app.py @@ -143,7 +143,7 @@ def __init__(self, accepted_resource_roles=None, args=None, backoff_factor=None, self.require_ports = require_ports self.secrets = secrets or {} - for k, s in self.secrets.iteritems(): + for k, s in self.secrets.items(): if not isinstance(s, Secret): self.secrets[k] = Secret().from_json(s)