Clean up some uses of set, list, and dict

* Use set literals instead of set([...])
* Avoid list(sorted(...)) as sorted returns a list
* Replace dict() with dict literal
This commit is contained in:
Jon Dufresne 2017-05-01 07:03:21 -07:00
parent 23b1f37ffd
commit 541bac6a82
8 changed files with 41 additions and 41 deletions

View file

@ -17,7 +17,7 @@ class Statistics(object):
:rtype:
list(str)
"""
return list(sorted(set(key.code for key in self._store.keys())))
return sorted({key.code for key in self._store.keys()})
def record(self, error):
"""Add the fact that the error was seen in the file.