From d30da191caa2a3eed8f892327c4af93eb521dcbb Mon Sep 17 00:00:00 2001 From: Adam Holmberg Date: Wed, 4 May 2016 13:55:47 -0500 Subject: [PATCH] Fix asyncore pipe dispatch for py3 --- cassandra/io/asyncorereactor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cassandra/io/asyncorereactor.py b/cassandra/io/asyncorereactor.py index c6cf8a19..54f985e8 100644 --- a/cassandra/io/asyncorereactor.py +++ b/cassandra/io/asyncorereactor.py @@ -102,7 +102,7 @@ class _AsyncorePipeDispatcher(_AsyncoreDispatcher): def notify_loop(self): if not self._notified: self._notified = True - os.write(self.write_fd, 'x') + os.write(self.write_fd, b'x') class _AsyncoreUDPDispatcher(_AsyncoreDispatcher):