From 326332013c12753b7116e87e4b8225bc5430fb30 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 26 Mar 2017 14:44:30 +0200 Subject: scgi.asynchronous: fix wrong assertion on py3k --- wsgitools/scgi/asynchronous.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3