Index: third_party/twisted_8_1/twisted/internet/glib2reactor.py |
diff --git a/third_party/twisted_8_1/twisted/internet/glib2reactor.py b/third_party/twisted_8_1/twisted/internet/glib2reactor.py |
deleted file mode 100644 |
index a759107dd1f55cbf62c5a656d8b1b5b2ff70d26d..0000000000000000000000000000000000000000 |
--- a/third_party/twisted_8_1/twisted/internet/glib2reactor.py |
+++ /dev/null |
@@ -1,49 +0,0 @@ |
- |
-""" |
-This module provides support for Twisted to interact with the glib mainloop. |
-This is like gtk2, but slightly faster and does not require a working |
-$DISPLAY. However, you cannot run GUIs under this reactor: for that you must |
-use the gtk2reactor instead. |
- |
-In order to use this support, simply do the following:: |
- |
- | from twisted.internet import glib2reactor |
- | glib2reactor.install() |
- |
-Then use twisted.internet APIs as usual. The other methods here are not |
-intended to be called directly. |
- |
-When installing the reactor, you can choose whether to use the glib |
-event loop or the GTK+ event loop which is based on it but adds GUI |
-integration. |
- |
-Maintainer: U{Itamar Shtull-Trauring<mailto:twisted@itamarst.org>} |
-""" |
- |
-from twisted.internet import gtk2reactor |
- |
- |
- |
-class Glib2Reactor(gtk2reactor.Gtk2Reactor): |
- """ |
- The reactor using the glib mainloop. |
- """ |
- |
- def __init__(self): |
- """ |
- Override init to set the C{useGtk} flag. |
- """ |
- gtk2reactor.Gtk2Reactor.__init__(self, useGtk=False) |
- |
- |
- |
-def install(): |
- """ |
- Configure the twisted mainloop to be run inside the glib mainloop. |
- """ |
- reactor = Glib2Reactor() |
- from twisted.internet.main import installReactor |
- installReactor(reactor) |
- |
-__all__ = ['install'] |
- |