diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-05 03:34:01 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-05 03:34:01 -0400 |
| commit | a92a8c9aaf22e3bcb705924e92962523ccb6cd5d (patch) | |
| tree | e3462032800c9f1d8cda1deaf20d8144e9c5eb24 | |
| parent | 951477214f1321a199bf69f9edaea05dec9345d1 (diff) | |
| download | python-setuptools-git-a92a8c9aaf22e3bcb705924e92962523ccb6cd5d.tar.gz | |
Now this syntax fits nicely on one line
| -rw-r--r-- | pkg_resources.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index b4e38ddb..972a4425 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -2655,10 +2655,7 @@ class Requirement: self.index, self.extras = index, tuple(map(safe_extra, extras)) self.hashCmp = ( self.key, - tuple( - (op, parsed) - for parsed, trans, op, ver in index - ), + tuple((op, parsed) for parsed, trans, op, ver in index), frozenset(self.extras), ) self.__hash = hash(self.hashCmp) |
