◐ Shell
clean mode source ↗

Message 26836 - Python tracker

A url request returns a redirect that contains a space '  ' 
character. Python urllib2.py does not replace this 
character with '%20' and fails.

Entering a line after line 507 of:
            newurl=re.sub(' ','%20',newurl)
         
Corrects my problem.