[Python-checkins] cpython (merge 3.3 -> default): #17678: Remove the use of a deprecated method http/cookiejar.py. Changing the

senthil.kumaran python-checkins at python.org
Tue Apr 9 16:11:19 CEST 2013


http://hg.python.org/cpython/rev/79387f3bcc92
changeset:   83212:79387f3bcc92
parent:      83210:70175bf5f932
parent:      83211:b3d5621511db
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Tue Apr 09 07:11:07 2013 -0700
summary:
  #17678: Remove the use of a deprecated method http/cookiejar.py. 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
@@ -30,6 +30,9 @@
 Library
 -------
 
+- Issue #17678: Remove the use of deprecated method in http/cookiejar.py.
+  Changing the usage of get_origin_req_host() to origin_req_host.
+
 - Issue #17666: Fix reading gzip files with an extra field.
 
 - Issue #16475: Support object instancing, recursion and interned strings

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list