summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2007-05-09 00:43:41 +0200
committerHelmut Grohne <helmut@subdivi.de>2007-05-09 00:43:41 +0200
commit43cfa376163bdca06314f9b9501c4bbbacba87c9 (patch)
tree149e242e282d755a3f90590e21185dc9a82f85f5
parent1683a4177f2fd8f35fc8004aa4e8e2930bc5aadd (diff)
downloadwsgitools-43cfa376163bdca06314f9b9501c4bbbacba87c9.tar.gz
fix too strict assertion in wsgitools.applications
-rw-r--r--wsgitools/applications.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsgitools/applications.py b/wsgitools/applications.py
index 5ef2e8a..dcbd78a 100644
--- a/wsgitools/applications.py
+++ b/wsgitools/applications.py
@@ -10,7 +10,7 @@ class StaticContent:
"""
assert isinstance(status, str)
assert isinstance(headers, list)
- assert hasattr(content, "__iter__")
+ assert isinstance(content, basestring) or hasattr(content, "__iter__")
self.status = status
self.headers = headers
length = -1