• Jeremy Hylton's avatar
    Repair redirect handling and raise URLError on host-not-found. · 828023b6
    Jeremy Hylton yazdı
    The latest changes to the redirect handler couldn't possibly have been
    tested, because they did not compute a newurl and failed with a
    NameError.  The __name__ == "__main__": block has a test for
    redirects.
    
    Also, fix SF bug 723831.  A urlopen() that failed because the host was
    not found raised a socket.gaierror unlike earlier versions of
    urllib2.  The problem is that httplib actually establishes the
    connection at a different point starting with Python 2.2.  Move the
    try/except to endheaders(), which is where the connection gets
    established.
    828023b6
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...