• Guido van Rossum's avatar
    Fix a horrible race condition -- various routines were storing the · 8a666e7c
    Guido van Rossum yazdı
    most recently opened URL in self.openedurl of the URLopener instance.
    This doesn't really work if multiple threads share the same opener
    instance!
    
    Fix: openedurl was actually simply the type prefix (e.g. "http:")
    followed by the rest of the URL; since the rest of the URL is
    available and the type is effectively determined by where you are in
    the code, I can reconstruct the full URL easily, e.g. "http:" + url.
    8a666e7c
urllib.py 24.8 KB