cubicweb/pyramid/core.py
changeset 12542 85194bd49119
parent 12508 a8c1ea390400
child 12550 c6f832df2f34
--- a/cubicweb/pyramid/core.py	Tue Mar 26 13:08:13 2019 +0100
+++ b/cubicweb/pyramid/core.py	Fri Mar 22 17:42:36 2019 +0100
@@ -23,7 +23,6 @@
 import itertools
 
 from contextlib import contextmanager
-from warnings import warn
 from cgi import FieldStorage
 
 import rql
@@ -124,11 +123,6 @@
         assert 300 <= ex.status < 400
         raise httpexceptions.status_map[ex.status](
             ex.location, headers=cw_headers(request))
-    except cubicweb.web.StatusResponse as ex:
-        warn('[3.16] StatusResponse is deprecated use req.status_out',
-             DeprecationWarning, stacklevel=2)
-        request.body = ex.content
-        request.status_int = ex.status
     except cubicweb.web.Unauthorized:
         raise httpexceptions.HTTPForbidden(
             request.cw_request._(