Skip to content

Commit

Permalink
Use dict comprehension instead of dict([...])
Browse files Browse the repository at this point in the history
  • Loading branch information
quantifiedcode-bot committed Jun 9, 2017
1 parent 8fa04d7 commit c8bf232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duedil/resources/pro/company/accounts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c8bf232

Please sign in to comment.