diff --git a/CHANGES/2547.removal b/CHANGES/2547.removal new file mode 100644 index 00000000000..abc605be58e --- /dev/null +++ b/CHANGES/2547.removal @@ -0,0 +1 @@ +Drop deprecated `request.GET` property. diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py index 4a07515b872..070a0f6dbb3 100644 --- a/aiohttp/web_request.py +++ b/aiohttp/web_request.py @@ -356,13 +356,6 @@ def query(self): """A multidict with all the variables in the query string.""" return self._rel_url.query - @property - def GET(self): - """A multidict with all the variables in the query string.""" - warnings.warn("GET property is deprecated, use .query instead", - DeprecationWarning) - return self._rel_url.query - @property def query_string(self): """The query string in the URL. diff --git a/tests/test_web_request.py b/tests/test_web_request.py index 3c4a32dd5db..ef47ea4212f 100644 --- a/tests/test_web_request.py +++ b/tests/test_web_request.py @@ -47,9 +47,6 @@ def test_ctor(): assert req.raw_headers == ((b'FOO', b'bar'),) assert req.task is req._task - with pytest.warns(DeprecationWarning): - assert req.GET is req.query - def test_doubleslashes(): # NB: //foo/bar is an absolute URL with foo netloc and /bar path