
    3 d                         d dl Z i Z ee           D ]IZe                    d          r2e                    d          s ee e          Z eee          reee<   JddZ	dS )    NSIGSIG_Tc                 ~   ddl m} |                                 t          j        t          j        |            t          j        t          j                  t          j        k    s|rt          j        t          j        |            t          t          d          r!t          j        t          j	        |            dS dS )zInstall the given function as a signal handler for all common shutdown
    signals (such as SIGINT, SIGTERM, etc). If override_sigint is ``False`` the
    SIGINT handler won't be install if there is already a handler in place
    (e.g.  Pdb)
    r   )reactorSIGBREAKN)
twisted.internetr   _handleSignalssignalSIGTERM	getsignalSIGINTdefault_int_handlerhasattrr   )functionoverride_sigintr   s      5lib/python3.11/site-packages/scrapy/utils/ossignal.pyinstall_shutdown_handlersr      s     )(((((
M&.(+++&&&*DD / /fmX...vz"" 1fox000001 1    )T)
r
   signal_namesdirsigname
startswithgetattrsignum
isinstanceintr    r   r   <module>r      s    s6{{ + +G%   +););F)C)C +)):fc"" 	+#*L 1 1 1 1 1 1r   