Initial import to Tizen
[profile/ivi/python-twisted.git] / twisted / internet / qtreactor.py
1 # -*- test-case-name: twisted.internet.test.test_qtreactor -*-
2 # Copyright (c) Twisted Matrix Laboratories.
3 # See LICENSE for details.
4
5 try:
6     # 'import qtreactor' would have imported this file instead of the
7     # top-level qtreactor. __import__ does the right thing
8     # (kids, don't repeat this at home)
9     install = __import__('qtreactor').install
10 except ImportError:
11     from twisted.plugins.twisted_qtstub import errorMessage
12     raise ImportError(errorMessage)
13 else:
14     import warnings
15     warnings.warn("Please use qtreactor instead of twisted.internet.qtreactor",
16                   category=DeprecationWarning)
17
18 __all__ = ['install']
19