Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed Jul 16, 2011
2 parents 00ae70f + de1ed16 commit ea60bb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/news.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Beta release mid-July 2011, final release early August.
* Fixed issue #295 - Reinstall a package when using the ``install -I`` option
* Fixed issue #283 - Finds a Git tag pointing to same commit as origin/master
* Fixed issue #279 - Use absolute path for path to docs in setup.py
* Fixed issue #320 - Correctly handle exceptions on Python3.
* Fixed issue #314 - Correctly parse ``--editable`` lines in requirements files

1.0.1 (2011-04-30)
------------------
Expand Down
2 changes: 1 addition & 1 deletion pip/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def _download_url(resp, link, temp_location):
download_hash = md5()
try:
total_length = int(resp.info()['content-length'])
except (ValueError, KeyError):
except (ValueError, KeyError, TypeError):
total_length = 0
downloaded = 0
show_progress = total_length > 40*1000 or not total_length
Expand Down
2 changes: 1 addition & 1 deletion pip/req.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ def parse_requirements(filename, finder=None, comes_from=None, options=None):
if line.startswith('-e'):
line = line[2:].strip()
else:
line = line[len('--editable'):].strip()
line = line[len('--editable'):].strip().lstrip('=')
req = InstallRequirement.from_editable(
line, comes_from=comes_from, default_vcs=options.default_vcs)
else:
Expand Down

0 comments on commit ea60bb7

Please sign in to comment.