summaryrefslogtreecommitdiff
path: root/src/webob
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2018-11-14 23:29:11 -0700
committerBert JW Regeer <bertjw@regeer.org>2020-11-28 12:19:51 -0800
commit3d626ca797b50139042d7bc689fcfbb035473157 (patch)
treee6d58da2dcb7b3a22fe626a88cdb05b817a10eeb /src/webob
parent4c1c348c5df3f6dda847b80d68271a6cacb4deb1 (diff)
downloadwebob-3d626ca797b50139042d7bc689fcfbb035473157.tar.gz
No longer monkeypatch paste HTTP exceptions
Diffstat (limited to 'src/webob')
-rw-r--r--src/webob/exc.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/webob/exc.py b/src/webob/exc.py
index d6ae1ec..3c56209 100644
--- a/src/webob/exc.py
+++ b/src/webob/exc.py
@@ -1335,25 +1335,6 @@ class HTTPExceptionMiddleware(object):
return parent_exc_info[1](environ, repl_start_response)
-try:
- from paste import httpexceptions
-except ImportError: # pragma: no cover
- # Without Paste we don't need to do this fixup
- pass
-else: # pragma: no cover
- for name in dir(httpexceptions):
- obj = globals().get(name)
-
- if (
- obj
- and isinstance(obj, type)
- and issubclass(obj, HTTPException)
- and obj is not HTTPException
- and obj is not WSGIHTTPException
- ):
- obj.__bases__ = obj.__bases__ + (getattr(httpexceptions, name),)
- del name, obj, httpexceptions
-
__all__ = ["HTTPExceptionMiddleware", "status_map"]
status_map = {}