summaryrefslogtreecommitdiffstats
path: root/pym/portage/util/_eventloop/GlibEventLoop.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-02-09 16:41:14 -0800
committerZac Medico <zmedico@gentoo.org>2012-02-09 16:41:14 -0800
commit963fa653fc0d7aff25bb4756df8398b88193547c (patch)
treea789d22c254b210a36e6407d921bb9f81470608f /pym/portage/util/_eventloop/GlibEventLoop.py
parent067138de6e4c5ca5890969b2f0681b0b178a24ed (diff)
downloadportage-963fa653fc0d7aff25bb4756df8398b88193547c.tar.gz
portage-963fa653fc0d7aff25bb4756df8398b88193547c.tar.bz2
portage-963fa653fc0d7aff25bb4756df8398b88193547c.zip
EventLoop: name poll constants like glib's
It's conceivable the constants could be implementation dependent, so use glib's generic IO_* names rather than the POLL* names which are associated specifically with python's select.poll object.
Diffstat (limited to 'pym/portage/util/_eventloop/GlibEventLoop.py')
-rw-r--r--pym/portage/util/_eventloop/GlibEventLoop.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage/util/_eventloop/GlibEventLoop.py b/pym/portage/util/_eventloop/GlibEventLoop.py
index b35772e7f..1e064eb29 100644
--- a/pym/portage/util/_eventloop/GlibEventLoop.py
+++ b/pym/portage/util/_eventloop/GlibEventLoop.py
@@ -13,6 +13,12 @@ class GlibEventLoop(object):
supports_multiprocessing = False
def __init__(self):
+ self.IO_ERR = glib.IO_ERR
+ self.IO_HUP = glib.IO_HUP
+ self.IO_IN = glib.IO_IN
+ self.IO_NVAL = glib.IO_NVAL
+ self.IO_OUT = glib.IO_OUT
+ self.IO_PRI = glib.IO_PRI
self.iteration = glib.main_context_default().iteration
self.idle_add = glib.idle_add
self.io_add_watch = glib.io_add_watch