aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/internet/qtreactor.py
blob: a548008350d40de63a51a7ed127a06662c926b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- test-case-name: twisted.internet.test.test_qtreactor -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

try:
    # 'import qtreactor' would have imported this file instead of the
    # top-level qtreactor. __import__ does the right thing
    # (kids, don't repeat this at home)
    install = __import__('qtreactor').install
except ImportError:
    from twisted.plugins.twisted_qtstub import errorMessage
    raise ImportError(errorMessage)
else:
    import warnings
    warnings.warn("Please use qtreactor instead of twisted.internet.qtreactor",
                  category=DeprecationWarning)

__all__ = ['install']