summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/request.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-03-19 01:06:00 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-03-19 01:06:00 (GMT)
commit41518b4af04d3cb8b2570b30c9135bffec2aa01f (patch)
treed864f109de46c994ffa7dd8abb21e0133ddec033 /Lib/urllib/request.py
parent80cbc9e99835f3ae72c62999b4852beab76a9017 (diff)
downloadcpython-41518b4af04d3cb8b2570b30c9135bffec2aa01f.zip
cpython-41518b4af04d3cb8b2570b30c9135bffec2aa01f.tar.gz
cpython-41518b4af04d3cb8b2570b30c9135bffec2aa01f.tar.bz2
#17474 - Remove the various deprecated methods of Request class.
Diffstat (limited to 'Lib/urllib/request.py')
-rw-r--r--Lib/urllib/request.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 8035f7c..90731cb 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -321,50 +321,6 @@ class Request:
else:
return self.full_url
- # Begin deprecated methods
-
- def add_data(self, data):
- msg = "Request.add_data method is deprecated."
- warnings.warn(msg, DeprecationWarning, stacklevel=1)
- self.data = data
-
- def has_data(self):
- msg = "Request.has_data method is deprecated."
- warnings.warn(msg, DeprecationWarning, stacklevel=1)
- return self.data is not None
-
- def get_data(self):
- msg = "Request.get_data method is deprecated."
- warnings.warn(msg, DeprecationWarning, stacklevel=1)
- return self.data
-
- def get_type(self):
- msg = "Request.get_type method is deprecated."
- warnings.warn(msg, DeprecationWarning, stacklevel=1)
- return self.type
-
- def get_host(self):
- msg = "Request.get_host method is deprecated."
- warnings.warn(msg, DeprecationWarning, stacklevel=1)
- return self.host
-
- def get_selector(self):
- msg = "Request.get_selector method is deprecated."
- warnings.warn(msg, DeprecationWarning, stacklevel=1)
- return self.selector
-
- def is_unverifiable(self):
- msg = "Request.is_unverifiable method is deprecated."
- warnings.warn(msg, DeprecationWarning, stacklevel=1)
- return self.unverifiable
-
- def get_origin_req_host(self):
- msg = "Request.get_origin_req_host method is deprecated."
- warnings.warn(msg, DeprecationWarning, stacklevel=1)
- return self.origin_req_host
-
- # End deprecated methods
-
def set_proxy(self, host, type):
if self.type == 'https' and not self._tunnel_host:
self._tunnel_host = self.host