summaryrefslogtreecommitdiff
path: root/paste/response.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-01-03 00:44:06 +0000
committerianb <devnull@localhost>2006-01-03 00:44:06 +0000
commitc950ee5341075bd9f6a6f9635614a79f7115207b (patch)
tree0deecbc0ad7fe3ed8b9ae1d0405609399eee7524 /paste/response.py
parent2c28d9f6ea7c0f0d9f135dccec31c2d987495a06 (diff)
downloadpaste-c950ee5341075bd9f6a6f9635614a79f7115207b.tar.gz
Fixed stack level for warnings
Diffstat (limited to 'paste/response.py')
-rw-r--r--paste/response.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/response.py b/paste/response.py
index 85deb6d..0b8daa7 100644
--- a/paste/response.py
+++ b/paste/response.py
@@ -158,7 +158,7 @@ def error_body_response(error_code, message, __warn=True):
warnings.warn(
'wsgilib.error_body_response is deprecated; use the '
'wsgi_application method on an HTTPException object '
- 'instead', DeprecationWarning, 1)
+ 'instead', DeprecationWarning, 2)
return '''\
<html>
<head>
@@ -193,7 +193,7 @@ def error_response(environ, error_code, message,
warnings.warn(
'wsgilib.error_response is deprecated; use the '
'wsgi_application method on an HTTPException object '
- 'instead', DeprecationWarning, 1)
+ 'instead', DeprecationWarning, 2)
if debug_message and environ.get('paste.config', {}).get('debug'):
message += '\n\n<!-- %s -->' % debug_message
body = error_body_response(error_code, message, __warn=False)
@@ -212,7 +212,7 @@ def error_response_app(error_code, message, debug_message=None,
warnings.warn(
'wsgilib.error_response_app is deprecated; use the '
'wsgi_application method on an HTTPException object '
- 'instead', DeprecationWarning, 1)
+ 'instead', DeprecationWarning, 2)
def application(environ, start_response):
status, headers, body = error_response(
environ, error_code, message,