[Python-checkins] cpython (3.3): #17678: Fix DeprecationWarning in the http/cookiejar.py by changing the usage
senthil.kumaran
python-checkins at python.org
Tue Apr 9 16:11:17 CEST 2013
http://hg.python.org/cpython/rev/b3d5621511db
changeset: 83211:b3d5621511db
branch: 3.3
parent: 83209:5c9b36969abc
user: Senthil Kumaran <senthil at uthcode.com>
date: Tue Apr 09 07:07:59 2013 -0700
summary:
#17678: Fix DeprecationWarning in the http/cookiejar.py by changing the usage
of get_origin_req_host() to origin_req_host.
Patch by Wei-Cheng Pan
files:
Lib/http/cookiejar.py | 2 +-
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -704,7 +704,7 @@
"""
req_host = request_host(request)
- if not domain_match(req_host, reach(request.get_origin_req_host())):
+ if not domain_match(req_host, reach(request.origin_req_host)):
return True
else:
return False
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,9 @@
Library
-------
+- Issue #17678: Fix DeprecationWarning in the http/cookiejar.py by changing the
+ usage of get_origin_req_host() to origin_req_host.
+
- Issue #17666: Fix reading gzip files with an extra field.
- Issue #17502: Process DEFAULT values in mock side_effect that returns iterator.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list