reactor: Convert to Python3 string encoding

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-10-01 19:10:11 -04:00
parent 0fc52f9496
commit fa25986adc
1 changed files with 2 additions and 2 deletions

View File

@ -171,13 +171,13 @@ class SelectReactor:
self._async_queue.put_nowait( self._async_queue.put_nowait(
(ReactorCallback, (self, callback, waketime))) (ReactorCallback, (self, callback, waketime)))
try: try:
os.write(self._pipe_fds[1], '.') os.write(self._pipe_fds[1], b'.')
except os.error: except os.error:
pass pass
def async_complete(self, completion, result): def async_complete(self, completion, result):
self._async_queue.put_nowait((completion.complete, (result,))) self._async_queue.put_nowait((completion.complete, (result,)))
try: try:
os.write(self._pipe_fds[1], '.') os.write(self._pipe_fds[1], b'.')
except os.error: except os.error:
pass pass
def _got_pipe_signal(self, eventtime): def _got_pipe_signal(self, eventtime):