Tested on py24, py27 and py32 and the failing tests on 3.2 go away, the content we're getting back is still gzipped so this is a valid manual test. Add BytesIO to backwardcompat, fallingback to StringIO on py2x. I'd like to get the CI build green then comeback and improve the testing around this. I've not added tests at the moment, but want to come back to that. There is quite a lot of complexity around downloads split between pip.index and pip.download.
Reran tests after changes on 2.4, 2.6, 3.2 all pass. ===================================================== ================== Running pep8 ===================== Searching for pep8 Reading http://pypi.python.org/simple/pep8/ Reading http://github.com/cburroughs/pep8.py/tree/master Reading http://github.com/jcrocholl/pep8 Best match: pep8 0.6.1 Processing pep8-0.6.1-py2.6.egg pep8 0.6.1 is already the active version in easy-install.pth Installing pep8 script to /Users/pnasrat/Development/pip/pip_virtualenv/bin Using /Users/pnasrat/Development/pip/pip_virtualenv/lib/python2.6/site-packages/pep8-0.6.1-py2.6.egg Processing dependencies for pep8 Finished processing dependencies for pep8 ==================== Ended pep8 ===================== =====================================================