summaryrefslogtreecommitdiff
path: root/Lib/pickle.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-13 01:39:16 +0000
committerGuido van Rossum <guido@python.org>1998-02-13 01:39:16 +0000
commit8a666e7c56192f42288a30a53adf5299fda29557 (patch)
treebc9b249f38a4d0a90e725f9d4076e4fa94edff58 /Lib/pickle.py
parente5bc49785c5aa6de9ca65754c1236e98e7c3a10f (diff)
downloadcpython-git-8a666e7c56192f42288a30a53adf5299fda29557.tar.gz
Fix a horrible race condition -- various routines were storing the
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.
Diffstat (limited to 'Lib/pickle.py')
0 files changed, 0 insertions, 0 deletions