~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/internet/qtreactor.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- test-case-name: twisted.internet.test.test_qtreactor -*-
 
2
# Copyright (c) 2001-2009 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