File 0004-Silence-Response.request-and-Response.environ-are-de.patch of Package python-WebOb
From ceb9318f7e33ac254294aef14a5485d4c3be1a35 Mon Sep 17 00:00:00 2001
From: Martin Vidner <mvidner@suse.cz>
Date: Thu, 23 Aug 2012 16:38:26 +0200
Subject: [PATCH 4/4] Silence "Response.request and Response.environ are
deprecated" (bnc#773009).
Visible, annoying:
These warnings are triggered by
openstack-swift-proxy, and are forwarded by syslog to the console(+),
visible to the operator of SUSE Cloud.
Harmless:
The deprecated methods still work and are only removed
from WebOb 1.2.
Hard to fix otherwise:
The upstream fix for swift(*) is too intrusive to apply past RC2 of
SUSE Cloud.
*) https://bugs.launchpad.net/swift/+bug/959881/comments/7
"webob 1.2b3 breaking the proxy server"
+) which looks like another bug as other log entries go to
/var/log/messages
---
webob/response.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/webob/response.py b/webob/response.py
index dc38808..55a8f8b 100644
--- a/webob/response.py
+++ b/webob/response.py
@@ -1193,7 +1193,7 @@ def _warn_ubody():
warn_deprecation(".unicode_body is deprecated in favour of Response.text", '1.3', 3)
def _warn_req():
- warn_deprecation("Response.request and Response.environ are deprecated", '1.2', 3)
+ pass
def _error_unicode_in_app_iter(app_iter, body):
app_iter_repr = repr(app_iter)
--
1.7.7