• Neal Norwitz's avatar
    Try to get test_urllib to pass on Windows by closing the file. · ce55e21c
    Neal Norwitz yazdı
    I'm guessing that's the problem.  h.getfile() must be called *after*
    h.getreply() and the fp can be None.
    
    I'm not entirely convinced this is the best fix (or even correct).
    The buildbots will tell us if things improve or not.  I don't
    know if this needs to be backported (assuming it actually works).
    ce55e21c
urllib.py 53.7 KB