diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-12-23 19:47:37 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-12-23 19:47:37 (GMT) |
commit | 46c6fd605ec880b65a63cf0c62e8b6f18b9b25d3 (patch) | |
tree | 51c9a40335ee78c2e3e63dc96b95f82b4ed4daf3 /Lib/urllib | |
parent | c10abb42fb795ffb5b4233883b62375f3588faeb (diff) | |
download | cpython-46c6fd605ec880b65a63cf0c62e8b6f18b9b25d3.zip cpython-46c6fd605ec880b65a63cf0c62e8b6f18b9b25d3.tar.gz cpython-46c6fd605ec880b65a63cf0c62e8b6f18b9b25d3.tar.bz2 |
Merged revisions 87448 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87448 | r.david.murray | 2010-12-23 14:44:49 -0500 (Thu, 23 Dec 2010) | 4 lines
#4496: remove misleading comment and note that self.handlers is obsolete.
self.handlers is still used in one urllib2 test, but not by the code iteslf.
........
Diffstat (limited to 'Lib/urllib')
-rw-r--r-- | Lib/urllib/request.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 7edfa1b..e13381c 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -258,8 +258,9 @@ class OpenerDirector: def __init__(self): client_version = "Python-urllib/%s" % __version__ self.addheaders = [('User-agent', client_version)] - # manage the individual handlers + # self.handlers is retained only for backward compatibility self.handlers = [] + # manage the individual handlers self.handle_open = {} self.handle_error = {} self.process_response = {} @@ -309,8 +310,6 @@ class OpenerDirector: added = True if added: - # the handlers must work in an specific order, the order - # is specified in a Handler attribute bisect.insort(self.handlers, handler) handler.add_parent(self) |