On 30/11/2014 09:10, Chris Angelico wrote:
On Sun, Nov 30, 2014 at 2:01 AM, Jerry Rocteur <jerry.roct...@gmail.com> wrote:
This works GREAT on 2.7 but when I run it on 2.4 I get:

   File "/usr/lib64/python2.4/urllib2.py", line 580, in proxy_open
     if '@' in host:
TypeError: iterable argument required

It might be worth looking at some actual 2.4 documentation.
Unfortunately that doesn't seem to be hosted on python.org any more
(though I might be wrong), so you'll want to look on your system
itself and find some docs.


This https://hg.python.org/cpython/file/ceec209b26d4/Doc/lib/liburllib2.tex should help.

Otherwise, why not simply install Python 2.7 on those systems? It can
happily coexist with the system 2.4.

ChrisA


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to