|
Revision 27869, 0.6 KB
(checked in by jesstess, 8 months ago)
|
|
Merge qtreactor-qtstub-2608
Author: jesstess
Reviewers: exarkun, washort, TimAllen, therve,
Fixes: #2608
twisted.internet.qtreactor no longer tries to import the non-existent
qtreactor_stub and instead imports twisted_qtstub.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | try: |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 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'] |
|---|