ó
[łXMc           @   s^   d  Z  d d l Z d d l m Z m Z d Z d e f Z d e f d     YZ e   Z d S(   sĹ   
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.
i˙˙˙˙N(   t   Reactort   NoSuchReactors,   http://twistedmatrix.com/trac/wiki/QTReactors\   qtreactor is no longer a part of Twisted due to licensing issues. Please see %s for details.t   QTStubc           B   s    e  Z d  Z d   Z d   Z RS(   sÍ   
    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.
    c         C   s    t  t |   j d d d  d  S(   Nt   qtt	   qtreactors   QT integration reactor(   t   superR   t   __init__(   t   self(    (    sB   /usr/lib/python2.7/dist-packages/twisted/plugins/twisted_qtstub.pyR      s    c         C   sT   y t  t |   j   Wn# t t f k
 r< t t   n Xt j d d t	 d S(   s   
        Install the Qt reactor with a deprecation warning or try to point
        the user to further information if it cannot be installed.
        s%   Please use -r qt3 to import qtreactort   categoryN(
   R   R   t   installt
   ValueErrort   ImportErrorR   t   errorMessaget   warningst   warnt   DeprecationWarning(   R   (    (    sB   /usr/lib/python2.7/dist-packages/twisted/plugins/twisted_qtstub.pyR	      s    (   t   __name__t
   __module__t   __doc__R   R	   (    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/plugins/twisted_qtstub.pyR      s   	(	   R   R   t   twisted.application.reactorsR    R   t   wikiURLR   R   R   (    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/plugins/twisted_qtstub.pyt   <module>	   s   
