summaryrefslogtreecommitdiff
path: root/paste/lint.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-12-29 16:43:45 +0000
committerianb <devnull@localhost>2005-12-29 16:43:45 +0000
commitc4a7ac89559ee520845b7a1652c85e363fb0e66a (patch)
tree60731e064eb29361102055367200829b529a4fbc /paste/lint.py
parent7ffd6eb7162db2708304370ce34df79c395ab41a (diff)
downloadpaste-c4a7ac89559ee520845b7a1652c85e363fb0e66a.tar.gz
tighter check: exc_info must be None if not given
Diffstat (limited to 'paste/lint.py')
-rw-r--r--paste/lint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/lint.py b/paste/lint.py
index e99a54e..6d14ea7 100644
--- a/paste/lint.py
+++ b/paste/lint.py
@@ -306,7 +306,7 @@ def check_content_type(status, headers):
assert 0, "No Content-Type header found in headers (%s)" % headers
def check_exc_info(exc_info):
- assert not exc_info or type(exc_info) is type(()), (
+ assert exc_info is None or type(exc_info) is type(()), (
"exc_info (%r) is not a tuple: %r" % (exc_info, type(exc_info)))
# More exc_info checks?