summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xEasyInstall.txt3
-rw-r--r--setuptools/__init__.py2
-rwxr-xr-xsetuptools/package_index.py3
3 files changed, 4 insertions, 4 deletions
diff --git a/EasyInstall.txt b/EasyInstall.txt
index 1e7971d8..404789c4 100755
--- a/EasyInstall.txt
+++ b/EasyInstall.txt
@@ -1233,6 +1233,9 @@ displayed MD5 info (broken onto two lines for readability)::
Release Notes/Change History
============================
+0.6c7
+ * ``ftp:`` download URLs now work correctly.
+
0.6c6
* EasyInstall no longer aborts the installation process if a URL it wants to
retrieve can't be downloaded, unless the URL is an actual package download.
diff --git a/setuptools/__init__.py b/setuptools/__init__.py
index 983d25f2..acb9013e 100644
--- a/setuptools/__init__.py
+++ b/setuptools/__init__.py
@@ -80,5 +80,3 @@ import distutils.filelist
distutils.filelist.findall = findall # fix findall bug in distutils.
-
-
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 3da253a5..d558b648 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -619,7 +619,7 @@ class PackageIndex(Environment):
def _attempt_download(self, url, filename):
headers = self._download_to(url, filename)
- if 'html' in headers['content-type'].lower():
+ if 'html' in headers.get('content-type','').lower():
return self._download_html(url, headers, filename)
else:
return filename
@@ -695,7 +695,6 @@ def htmldecode(text):
-
def open_with_auth(url):
"""Open a urllib2 request, handling HTTP authentication"""