summaryrefslogtreecommitdiff
path: root/wsgitools/scgi
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2017-03-26 14:44:30 +0200
committerHelmut Grohne <helmut@subdivi.de>2017-03-26 14:44:30 +0200
commit326332013c12753b7116e87e4b8225bc5430fb30 (patch)
tree66cac5e1e2e8e61c6c5d1c749c33aad8b818d168 /wsgitools/scgi
parentab06a888e216f5d93bbc87aa69bac140cc058641 (diff)
downloadwsgitools-326332013c12753b7116e87e4b8225bc5430fb30.tar.gz
scgi.asynchronous: fix wrong assertion on py3k
Diffstat (limited to 'wsgitools/scgi')
-rw-r--r--wsgitools/scgi/asynchronous.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py
index 51c1d55..80b5803 100644
--- a/wsgitools/scgi/asynchronous.py
+++ b/wsgitools/scgi/asynchronous.py
@@ -58,7 +58,7 @@ class SCGIConnection(asyncore.dispatcher):
def _wsgi_write(self, data):
assert self.state >= SCGIConnection.RESP
assert self.state < SCGIConnection.TRANS
- assert isinstance(data, str)
+ assert isinstance(data, bytes)
if data:
self._try_send_headers()
self.outbuff += data