diff options
author | Helmut Grohne <helmut@subdivi.de> | 2007-09-20 13:27:45 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2007-09-20 13:27:45 +0200 |
commit | fa9c543d4916fe22dbad6044f8bf09f0cbbc36c7 (patch) | |
tree | 5194f43662de44553b40e905ee6f475057d00fd1 /wsgitools/scgi/forkpool.py | |
parent | 27f7fd0e8882e919cb6b2798eb6b8f1feb2d7829 (diff) | |
download | wsgitools-fa9c543d4916fe22dbad6044f8bf09f0cbbc36c7.tar.gz |
added assertions for not getting unicode strings
Diffstat (limited to 'wsgitools/scgi/forkpool.py')
-rw-r--r-- | wsgitools/scgi/forkpool.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py index 157e320..4a07740 100644 --- a/wsgitools/scgi/forkpool.py +++ b/wsgitools/scgi/forkpool.py @@ -58,6 +58,7 @@ class SocketFileWrapper: pass def write(self, data): """see pep333""" + assert isinstance(data, str) self.sock.send(data) def writelines(self, lines): """see pep333""" @@ -229,6 +230,7 @@ class SCGIServer: assert hasattr(result, "__iter__") for data in result: + assert isinstance(data, str) con.send(data) if hasattr(result, "close"): result.close() |