Deprecate request.json property
This commit is contained in:
parent
7169f44d88
commit
61097c47a3
1 changed files with 3 additions and 1 deletions
|
|
@ -103,7 +103,9 @@ class Request(RequestBase):
|
||||||
|
|
||||||
The :meth:`get_json` method should be used instead.
|
The :meth:`get_json` method should be used instead.
|
||||||
"""
|
"""
|
||||||
# XXX: deprecate property
|
from warnings import warn
|
||||||
|
warn(DeprecationWarning('json is deprecated. '
|
||||||
|
'Use get_json() instead.'), stacklevel=2)
|
||||||
return self.get_json()
|
return self.get_json()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue