aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_emerge/AbstractPollTask.py')
-rw-r--r--lib/_emerge/AbstractPollTask.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/_emerge/AbstractPollTask.py b/lib/_emerge/AbstractPollTask.py
index eaf2c02e3..fd49d9f43 100644
--- a/lib/_emerge/AbstractPollTask.py
+++ b/lib/_emerge/AbstractPollTask.py
@@ -10,7 +10,6 @@ from _emerge.AsynchronousTask import AsynchronousTask
class AbstractPollTask(AsynchronousTask):
-
__slots__ = ("_registered",)
_bufsize = 4096
@@ -34,7 +33,7 @@ class AbstractPollTask(AsynchronousTask):
# Python 3.2:
# TypeError: read() didn't return bytes
pass
- except IOError as e:
+ except OSError as e:
# EIO happens with pty on Linux after the
# slave end of the pty has been closed.
if e.errno == errno.EIO:
@@ -93,7 +92,7 @@ class AbstractPollTask(AsynchronousTask):
def _async_wait(self):
self._unregister()
- super(AbstractPollTask, self)._async_wait()
+ super()._async_wait()
def _unregister(self):
self._registered = False