Skip to content

Commit

Permalink
Add missed deprecations for resp.url
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 18, 2016
1 parent dd53bee commit 9a0bc18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ def url_obj(self):

@property
def url(self):
warnings.warn("Deprecated, use .url_obj",
DeprecationWarning,
stacklevel=2)
return str(self._url_obj)

@property
Expand Down
2 changes: 2 additions & 0 deletions docs/client_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,8 @@ Response object

URL of request (:class:`str`).

.. deprecated:: 1.1

.. attribute:: url_obj

URL of request (:class:`~yarl.URL`).
Expand Down

0 comments on commit 9a0bc18

Please sign in to comment.