summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-07-14 23:07:27 +0000
committerChris McDonough <chrism@agendaless.com>2008-07-14 23:07:27 +0000
commit15c928aae555bc7f9080d748eceb65b83e32c9fb (patch)
tree4d4eb21a6ca38cd75326115b1b9b9ae13ac81687
parent9d9f0825f4d0da22bc39a511471d16316f421c16 (diff)
downloadpyramid-15c928aae555bc7f9080d748eceb65b83e32c9fb.tar.gz
pyramid-15c928aae555bc7f9080d748eceb65b83e32c9fb.tar.bz2
pyramid-15c928aae555bc7f9080d748eceb65b83e32c9fb.zip
Do the full check.
-rw-r--r--repoze/bfg/wsgiadapter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/repoze/bfg/wsgiadapter.py b/repoze/bfg/wsgiadapter.py
index 968092a4e..c2d51a799 100644
--- a/repoze/bfg/wsgiadapter.py
+++ b/repoze/bfg/wsgiadapter.py
@@ -19,7 +19,8 @@ def isResponse(ob):
if ( hasattr(ob, 'app_iter') and hasattr(ob, 'headerlist') and
hasattr(ob, 'status') ):
if ( hasattr(ob.app_iter, '__iter__') and
- hasattr(ob.headerlist, '__iter__') ):
+ hasattr(ob.headerlist, '__iter__') and
+ isinstance(ob.status, basestring) ) :
return True
class NaiveWSGIViewAdapter: