Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Fix deprecation error messages for ``response.request`` and

  ``response.environ`` (they previously showed ``None`` as the attribute name
  when displayed).
  • Loading branch information...
commit 2c32937f66fd78c22580f369c2ba04334ebfdd96 1 parent 33f840b
@mcdonc mcdonc authored
Showing with 6 additions and 2 deletions.
  1. +4 −0 docs/news.txt
  2. +2 −2 webob/response.py
View
4 docs/news.txt
@@ -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
---------
View
4 webob/response.py
@@ -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.
Something went wrong with that request. Please try again.