Skip to content

Commit

Permalink
Merge pull request #12 from founders4schools/autofix/wrapped2_to3_fix
Browse files Browse the repository at this point in the history
Fix "Consider dict comprehensions instead of using 'dict()'" issue
  • Loading branch information
nanorepublica committed Jun 9, 2017
2 parents 5c0fd32 + 5a1f536 commit c37ecc6
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 c37ecc6

Please sign in to comment.