Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(960)

Unified Diff: third_party/twisted_8_1/twisted/internet/glib2reactor.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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']
-
« no previous file with comments | « third_party/twisted_8_1/twisted/internet/fdesc.py ('k') | third_party/twisted_8_1/twisted/internet/gtk2reactor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698