aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2010-05-25 12:22:42 +0200
committerTarek Ziade <tarek@ziade.org>2010-05-25 12:22:42 +0200
commit0756b06fcfc6bb9c045c6927605d1165cd7000cb (patch)
tree9e81b51c88b8bf0b74d649cb4912cd8d24f05b2b
parentdd45c0df44049d27db2b16ba5170cd00825dc960 (diff)
downloadexternal_python_setuptools-0756b06fcfc6bb9c045c6927605d1165cd7000cb.tar.gz
external_python_setuptools-0756b06fcfc6bb9c045c6927605d1165cd7000cb.tar.bz2
external_python_setuptools-0756b06fcfc6bb9c045c6927605d1165cd7000cb.zip
avoiding name collisions when looking for md5 in fragment
--HG-- branch : distribute extra : rebase_source : 8b9469b9b9b4d8769ee5e6655aa1b75c207905b8
-rw-r--r--pkg_resources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 6ef06296..30dbc188 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -2049,7 +2049,7 @@ def _remove_md5_fragment(location):
if not location:
return ''
parsed = urlparse(location)
- if 'md5' in parsed[-1]:
+ if parsed[-1].startswith('md5='):
return urlunparse(parsed[:-1] + ('',))
return location