Server IP : 15.235.198.142 / Your IP : 216.73.216.25 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/internet/ |
Upload File : |
# -*- test-case-name: twisted.internet.test.test_main -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Backwards compatibility, and utility functions. In general, this module should not be used, other than by reactor authors who need to use the 'installReactor' method. """ from twisted.internet import error CONNECTION_DONE = error.ConnectionDone("Connection done") CONNECTION_LOST = error.ConnectionLost("Connection lost") def installReactor(reactor): """ Install reactor C{reactor}. @param reactor: An object that provides one or more IReactor* interfaces. """ # this stuff should be common to all reactors. import sys import twisted.internet if "twisted.internet.reactor" in sys.modules: raise error.ReactorAlreadyInstalledError("reactor already installed") twisted.internet.reactor = reactor sys.modules["twisted.internet.reactor"] = reactor __all__ = ["CONNECTION_LOST", "CONNECTION_DONE", "installReactor"]