reactor: Convert to Python3 string encoding
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0fc52f9496
commit
fa25986adc
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue