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

Side by Side Diff: third_party/twisted_8_1/twisted/internet/main.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # -*- test-case-name: twisted.test.test_app -*-
2 # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
3 # See LICENSE for details.
4
5
6 """Backwards compatability, and utility functions.
7
8 In general, this module should not be used, other than by reactor authors
9 who need to use the 'installReactor' method.
10
11 Maintainer: U{Itamar Shtull-Trauring<mailto:twisted@itamarst.org>}
12 """
13
14 import error
15
16 CONNECTION_DONE = error.ConnectionDone('Connection done')
17 CONNECTION_LOST = error.ConnectionLost('Connection lost')
18
19 def installReactor(reactor):
20 # this stuff should be common to all reactors.
21 import twisted.internet
22 import sys
23 assert not sys.modules.has_key('twisted.internet.reactor'), \
24 "reactor already installed"
25 twisted.internet.reactor = reactor
26 sys.modules['twisted.internet.reactor'] = reactor
27
28 __all__ = ["CONNECTION_LOST", "CONNECTION_DONE", "installReactor"]
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/internet/kqreactor.py ('k') | third_party/twisted_8_1/twisted/internet/pollreactor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698