Skip to content

Commit

Permalink
* Fix deprecation error messages for response.request and
Browse files Browse the repository at this point in the history
  ``response.environ`` (they previously showed ``None`` as the attribute name
  when displayed).
  • Loading branch information
mcdonc committed Oct 6, 2011
1 parent 33f840b commit 2c32937
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/news.txt
Expand Up @@ -15,6 +15,10 @@ master

* ``Accept.best_matches()`` is gone.

* Fix deprecation error messages for ``response.request`` and
``response.environ`` (they previously showed ``None`` as the attribute name
when displayed).


1.2a2
---------
Expand Down
4 changes: 2 additions & 2 deletions webob/response.py
Expand Up @@ -1181,5 +1181,5 @@ def _error_unicode_in_app_iter(app_iter, body):


# TODO: remove in 1.4
Response.request = deprecated_property(None, 'request', 'Response.request will be removed completely in 1.4', '1.2')
Response.environ = deprecated_property(None, 'environ', 'Response.environ will be removed completely in 1.4', '1.2')
Response.request = deprecated_property('request', 'request', 'Response.request will be removed completely in 1.4', '1.2')
Response.environ = deprecated_property('environ', 'environ', 'Response.environ will be removed completely in 1.4', '1.2')

0 comments on commit 2c32937

Please sign in to comment.