summaryrefslogtreecommitdiff
path: root/paste/errordocument.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-04-22 02:20:30 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-04-22 02:20:30 +0200
commitebf7227f6ea8735c5f17ef9078e4543bfcb38a8c (patch)
tree4353bab5ad6666d1b1965c07dfea9755bbda0998 /paste/errordocument.py
parentcbb342923f17bedff2a6050e04a87023db45ec10 (diff)
downloadpaste-ebf7227f6ea8735c5f17ef9078e4543bfcb38a8c.tar.gz
Fix pyflakes warnings
* Remove unused variables * Remove unused imports * Remove dead code
Diffstat (limited to 'paste/errordocument.py')
-rw-r--r--paste/errordocument.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/paste/errordocument.py b/paste/errordocument.py
index b5f34fe..34f2d4a 100644
--- a/paste/errordocument.py
+++ b/paste/errordocument.py
@@ -168,7 +168,6 @@ class StatusBasedForward(object):
def __call__(self, environ, start_response):
url = []
- writer = []
def change_response(status, headers, exc_info=None):
status_code = status.split(' ')
@@ -370,7 +369,7 @@ class _StatusBasedRedirect(object):
forward.start_response = eat_start_response
try:
app_iter = forward(url_, new_environ)
- except InvalidForward as e:
+ except InvalidForward:
code, message = code_message[0]
environ['wsgi.errors'].write(
'Error occurred in '