Remove long deprecated code from request wrapper (#9441)

This commit is contained in:
Devid 2024-06-18 19:03:37 +01:00 committed by GitHub
parent 1e9b5c15ec
commit e13688f0c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -422,13 +422,6 @@ class Request:
except AttributeError: except AttributeError:
return self.__getattribute__(attr) return self.__getattribute__(attr)
@property
def DATA(self):
raise NotImplementedError(
'`request.DATA` has been deprecated in favor of `request.data` '
'since version 3.0, and has been fully removed as of version 3.2.'
)
@property @property
def POST(self): def POST(self):
# Ensure that request.POST uses our request parsing. # Ensure that request.POST uses our request parsing.
@ -447,13 +440,6 @@ class Request:
self._load_data_and_files() self._load_data_and_files()
return self._files return self._files
@property
def QUERY_PARAMS(self):
raise NotImplementedError(
'`request.QUERY_PARAMS` has been deprecated in favor of `request.query_params` '
'since version 3.0, and has been fully removed as of version 3.2.'
)
def force_plaintext_errors(self, value): def force_plaintext_errors(self, value):
# Hack to allow our exception handler to force choice of # Hack to allow our exception handler to force choice of
# plaintext or html error responses. # plaintext or html error responses.