diff options
| author | PJ Eby <distutils-sig@python.org> | 2005-11-26 18:59:35 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2005-11-26 18:59:35 +0000 |
| commit | 54f4c8f77365dc6a6a6cb1edf472a58e3c802789 (patch) | |
| tree | 80c747c6f9939f08ac11040b371710b560eef2d3 /pkg_resources.py | |
| parent | 016ae6c42a868bc36c950cd3dc04e75b6ecce7dc (diff) | |
| download | python-setuptools-git-54f4c8f77365dc6a6a6cb1edf472a58e3c802789.tar.gz | |
If more than one URL appears to describe the exact same distribution, prefer
the shortest one. This helps to avoid "table of contents" CGI URLs like the
ones on effbot.org.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041550
Diffstat (limited to 'pkg_resources.py')
| -rw-r--r-- | pkg_resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index 4cf262b7..371ef20d 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1754,7 +1754,7 @@ class Distribution(object): hashcmp = property( lambda self: ( getattr(self,'parsed_version',()), self.precedence, self.key, - self.location, self.py_version, self.platform + -len(self.location), self.location, self.py_version, self.platform ) ) def __cmp__(self, other): return cmp(self.hashcmp, other) |
