py27+ syntax improvements

This commit is contained in:
Anthony Sottile 2017-01-21 11:49:53 -08:00
parent 0a93f3bfdd
commit ba75867c93
9 changed files with 31 additions and 34 deletions

View file

@ -21,4 +21,4 @@ class Manifest(object):
@cached_property
def hooks(self):
return dict((hook['id'], hook) for hook in self.manifest_contents)
return {hook['id']: hook for hook in self.manifest_contents}