diff options
author | Helmut Grohne <helmut@subdivi.de> | 2017-03-26 14:44:30 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2017-03-26 14:44:30 +0200 |
commit | 326332013c12753b7116e87e4b8225bc5430fb30 (patch) | |
tree | 66cac5e1e2e8e61c6c5d1c749c33aad8b818d168 /wsgitools/scgi/asynchronous.py | |
parent | ab06a888e216f5d93bbc87aa69bac140cc058641 (diff) | |
download | wsgitools-326332013c12753b7116e87e4b8225bc5430fb30.tar.gz |
scgi.asynchronous: fix wrong assertion on py3k
Diffstat (limited to 'wsgitools/scgi/asynchronous.py')
-rw-r--r-- | wsgitools/scgi/asynchronous.py | 2 |
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 |