From 43cfa376163bdca06314f9b9501c4bbbacba87c9 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 9 May 2007 00:43:41 +0200 Subject: fix too strict assertion in wsgitools.applications --- wsgitools/applications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3