]> granicus.if.org Git - python/commitdiff
#17678: Fix DeprecationWarning in the http/cookiejar.py by changing the usage
authorSenthil Kumaran <senthil@uthcode.com>
Tue, 9 Apr 2013 14:07:59 +0000 (07:07 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 9 Apr 2013 14:07:59 +0000 (07:07 -0700)
of get_origin_req_host() to origin_req_host.

Patch by Wei-Cheng Pan

Lib/http/cookiejar.py
Misc/NEWS

index 901e762f0e66399d2f80807b9e7f0eb770608c2a..ddb79c5020900313ca8652319a190b1e77f205b5 100644 (file)
@@ -704,7 +704,7 @@ def is_third_party(request):
 
     """
     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
index 9d61c32ff82729f7142dd8d325eb40885a57c674..744c71518119d87021c9ae80384a599783b2bd07 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,9 @@ Core and Builtins
 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.