403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/IPython/core/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/IPython/core/__pycache__/crashhandler.cpython-311.pyc
�

�@�cF!���dZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZdd	l
mZdd
lmZdZdZGd
�de��Zd�ZdS)ztsys.excepthook for IPython itself, leaves a detailed report on disk.

Authors:

* Fernando Perez
* Brian E. Granger
�N)�pformat)�Path)�ultratb)�author_email)�sys_info)�input)�__version__)�Optionala�Oops, {app_name} crashed. We do our best to make it stable, but...

A crash report was automatically generated with the following information:
  - A verbatim copy of the crash traceback.
  - A copy of your input history during this session.
  - Data on your current {app_name} configuration.

It was left in the file named:
	'{crash_report_fname}'
If you can email this file to the developers, the information in it will help
them in understanding and correcting the problem.

You can mail it to: {contact_name} at {contact_email}
with the subject '{app_name} Crash Report'.

If you want to do it now, the following command will work (under Unix):
mail -s '{app_name} Crash Report' {contact_email} < {crash_report_fname}

In your email, please also include information about:
- The operating system under which the crash happened: Linux, macOS, Windows,
  other, and which exact version (for example: Ubuntu 16.04.3, macOS 10.13.2,
  Windows 10 Pro), and whether it is 32-bit or 64-bit;
- How {app_name} was installed: using pip or conda, from GitHub, as part of
  a Docker container, or other, providing more detail if possible;
- How to reproduce the crash: what exact sequence of instructions can one
  input to get the same crash? Ideally, find a minimal yet complete sequence
  of instructions that yields the crash.

To ensure accurate tracking of this issue, please file a report about it at:
{bug_tracker}
a�
If you suspect this is an IPython {version} bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at {email}

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    {config}Application.verbose_crash=True
c�r�eZdZdZeZdZ					ddeedeedeed	e	d
e	f
d�Z
d�Zd
�ZdS)�CrashHandlerz�Customizable crash handlers for IPython applications.

    Instances of this class provide a :meth:`__call__` method which can be
    used as a ``sys.excepthook``.  The :meth:`__call__` signature is::

        def __call__(self, etype, evalue, etb)
    zO

***************************************************************************

NTF�contact_name�
contact_email�bug_tracker�show_crash_traceback�call_pdbc��d|jz|_||_||_||_t|j||||j���|_dS)a�Create a new crash handler

        Parameters
        ----------
        app : Application
            A running :class:`Application` instance, which will be queried at
            crash time for internal information.
        contact_name : str
            A string with the name of the person to contact.
        contact_email : str
            A string with the email address of the contact.
        bug_tracker : str
            A string with the URL for your project's bug tracker.
        show_crash_traceback : bool
            If false, don't print the crash traceback on stderr, only generate
            the on-disk report
        call_pdb
            Whether to call pdb on crash

        Attributes
        ----------
        These instances contain some non-argument attributes which allow for
        further customization of the crash handler's behavior. Please see the
        source for further details.

        zCrash_report_%s.txt)�app_namer
rr�crash_report_fnameN)�namer�apprr�dict�info)�selfrr
rrrrs       �;/usr/lib/python3/dist-packages/IPython/core/crashhandler.py�__init__zCrashHandler.__init__dsZ��F#8�#�(�"B������ ��
�$8��!��C�H�#/�$1�"-�)-�)@�	B�B�B��	�	�	�c��tjt_d}	|jj}n#tj��}YnxYw|�tj|��stj��}||jz}||_||j	d<tj|d|j���}|jr||||��dS|�
|||d���}|jrt|tj���	t#|d	d
���}	n##tdtj���YdSxYw|	5td
tj���t|jjdi|j	��tj���|	�|�|����ddd��n#1swxYwYt-d��dS)z<Handle an exception, call for compatible with sys.excepthook�NoColorNr�)�color_scheme�long_headerr�)�context��file�wzutf-8)�encodingz&Could not create crash report on disk.zH
**********************************************************************
z.Hit <Enter> to quit (your terminal may close):�)�sys�__excepthook__�
excepthookr�ipython_dirr�cwd�is_dirrrr�	VerboseTBr�textr�print�stderr�open�message_template�format�write�make_reportr)
r�etype�evalue�etbr �rptdir�report_name�	TBhandler�	traceback�reports
          r�__call__zCrashHandler.__call__�s���+���!��	 ��X�)�F�F��	 ��X�Z�Z�F�F�F�����>���V�!4�!4�>��X�Z�Z�F��t�6�6��#.���*5��	�&�'��%�%���]�
�
�
�	�
�=�	D��I�e�F�3�'�'�'��F�!���u�V�C���C�C�I��$�	.��)�#�*�-�-�-�-�	��+�s�W�=�=�=�F�F��	��:���L�L�L�L��F�F����
�	6�	6��"���4�4�4�4��.�$�'�.�;�;���;�;�#�*�M�M�M�M�
�L�L��)�)�)�4�4�5�5�5�
	6�	6�	6�	6�	6�	6�	6�	6�	6�	6�	6����	6�	6�	6�	6�	�>�?�?�?�?�?s'�'�>�3D�D&�+A4F+�+F/�2F/c�J�|j}dg}|j}|t����	t|jj��}||��|d|jz��|d��||��n#YnxYw||dz|z��d�|��S)z*Return a string containing a crash report.zi***************************************************************************

IPython post-mortem report

zApplication name: %s

z'Current user configuration structure:

zCrash traceback:

�)�section_sep�appendrrr�configr�join)rr>�sec_sepr?�rpt_addrEs      rr7zCrashHandler.make_report�s����"��@�A���-�����
�
����	��T�X�_�-�-�F��G�G�����G�.���>�?�?�?��G�?�@�@�@��G�F�O�O�O�O��	��D�������.�.��:�;�;�;��w�w�v���s�A
A8�8A<)NNNTF)
�__name__�
__module__�__qualname__�__doc__�_default_message_templater4rCr
�str�boolrr@r7r(rrrrXs���������1��&�K�
'+�'+�%)�%)��,B�,B��s�m�,B� ��}�	,B�
�c�]�,B�#�
,B��,B�,B�,B�,B�^6@�6@�6@�p����rrc���tj|||��ddlm}|���rd}nd}tt�t|t���tj���dS)zAa light excepthook, adding a small message to the usual tracebackr)�InteractiveShellz%config zc.)�emailrE�versionr$N)r>�print_exception�IPython.core.interactiveshellrQ�initializedr1�_lite_message_templater5rrSr)r2)r8r9�tbrQrEs     r�crash_handler_literY�s��
��e�V�R�0�0�0�>�>�>�>�>�>��#�#�%�%�������	�
 �
'�
'�l�6�SZ�
'�
[�
[�be�bl�m�m�m�m�m�mr)rL�osr)r>�pprintr�pathlibr�IPython.corer�IPython.core.releaser�IPython.utils.sysinfor�IPython.utils.py3compatrr	rS�typingr
rMrW�objectrrYr(rr�<module>rcs!����(
�	�	�	�
�
�
�
����������������� � � � � � �-�-�-�-�-�-�*�*�*�*�*�*�)�)�)�)�)�)�7�7�7�7�7�7���������B
��F�F�F�F�F�6�F�F�F�Rn�n�n�n�nr

Youez - 2016 - github.com/yon3zu
LinuXploit