diff options
author | Helmut Grohne <helmut@subdivi.de> | 2007-05-09 00:43:41 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2007-05-09 00:43:41 +0200 |
commit | 43cfa376163bdca06314f9b9501c4bbbacba87c9 (patch) | |
tree | 149e242e282d755a3f90590e21185dc9a82f85f5 /wsgitools/applications.py | |
parent | 1683a4177f2fd8f35fc8004aa4e8e2930bc5aadd (diff) | |
download | wsgitools-43cfa376163bdca06314f9b9501c4bbbacba87c9.tar.gz |
fix too strict assertion in wsgitools.applications
Diffstat (limited to 'wsgitools/applications.py')
-rw-r--r-- | wsgitools/applications.py | 2 |
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 |