From c8bf23253aaacb880f438b7093c85c76767734e7 Mon Sep 17 00:00:00 2001 From: Cody Date: Fri, 9 Jun 2017 08:41:08 +0000 Subject: [PATCH] Use dict comprehension instead of dict([...]) --- duedil/resources/pro/company/accounts/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duedil/resources/pro/company/accounts/__init__.py b/duedil/resources/pro/company/accounts/__init__.py index f36e970..68aa512 100644 --- a/duedil/resources/pro/company/accounts/__init__.py +++ b/duedil/resources/pro/company/accounts/__init__.py @@ -23,7 +23,7 @@ class Account(RelatedResourceMixin, ProResource): full_endpoint = True def __iter__(self): - return iter(dict([(i,getattr(self, i)) for i in self.attribute_names])) + return iter({i: getattr(self, i) for i in self.attribute_names}) @property def path(self):