K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / lib / python2.7 / dist-packages / twisted / plugins /
server ip : 104.21.89.46

your ip : 172.70.100.192

H O M E


Filename/usr/lib/python2.7/dist-packages/twisted/plugins/twisted_qtstub.py
Size1.38 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:56
Last modified14-Feb-2011 11:45
Last accessed06-Jul-2025 17:17
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

"""
Backwards-compatibility plugin for the Qt reactor.

This provides a Qt reactor plugin named C{qt} which emits a deprecation
warning and a pointer to the separately distributed Qt reactor plugins.
"""

import warnings

from twisted.application.reactors import Reactor, NoSuchReactor

wikiURL = 'http://twistedmatrix.com/trac/wiki/QTReactor'
errorMessage = ('qtreactor is no longer a part of Twisted due to licensing '
'issues. Please see %s for details.' % (wikiURL,))

class QTStub(Reactor):
"""
Reactor plugin which emits a deprecation warning on the successful
installation of its reactor or a pointer to further information if an
ImportError occurs while attempting to install it.
"""
def __init__(self):
super(QTStub, self).__init__(
'qt', 'qtreactor', 'QT integration reactor')


def install(self):
"""
Install the Qt reactor with a deprecation warning or try to point
the user to further information if it cannot be installed.
"""
try:
super(QTStub, self).install()
except (ValueError, ImportError):
raise NoSuchReactor(errorMessage)
else:
warnings.warn(
"Please use -r qt3 to import qtreactor",
category=DeprecationWarning)


qt = QTStub()