| 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/py/_io/__pycache__/ |
Upload File : |
�
��a� � �~ � d dl Z d dlZeZe j � dd� � Z G d� dej � � Zdd�Z dS ) � N�repr�reprlibc �* � e Zd ZdZd� Zd� Zd� Zd� ZdS )�SafeReprz� subclass of repr.Repr that limits the resulting size of repr()
and includes information on exceptions raised during the call.
c �N � | � t j j | |� � S �N)�_callhelperr �Reprr )�self�xs �1/usr/lib/python3/dist-packages/py/_io/saferepr.pyr z
SafeRepr.repr s � ������ 1�4��;�;�;� c � � d� } ||d | j � � � }t |� � | j k r�t d| j dz
dz � � }t d| j dz
|z
� � } ||d |� |t |� � |z
d � z � � }|d |� dz |t |� � |z
d � z }|S )Nc � � d| vr"t j � d� � | z S d| vr"t j � d� � | z S t j � d� � | � dd� � z S )N�'z'%s'�"z"%s"z\')�py�builtin�_totext�replace)�us r
r z#SafeRepr.repr_unicode.<locals>.repr ss � ��!�|�|��z�)�)�&�1�1�A�5�5��A����z�)�)�&�1�1�A�5�5��z�)�)�&�1�1�A�I�I�c�5�4I�4I�I�Ir r � � �...)� maxstring�len�max)r r �levelr �s�i�js r
�repr_unicodezSafeRepr.repr_unicode s� � � J� J� J�
�D��?�D�N�?�#�$�$���q�6�6�D�N�"�"��A���q�(�1�,�-�-�A��A�t�~�a�'��)�*�*�A���Q�r��r�U�Q�s�1�v�v�a�x�y�y�\�)�*�*�A��"�1�"���
��#�a�&�&��(�)�)��,�A��r c �8 � | � t |� � S r )r �builtin_repr)r r r s r
�
repr_instancezSafeRepr.repr_instance s � �����a�0�0�0r c �( � ||g|�R � }t |� � | j k r^t d| j dz
dz � � }t d| j dz
|z
� � }|d |� dz |t |� � |z
d � z }|S # t j j $ r � t
j � � \ }}} t |dd� � }
t |� � }n# t j j $ r � d}Y nxY wd|
||j
j t |� � fz cY S xY w)Nr r r r �__name__�unknownz/<[%s("%s") raised in repr()] %s object at 0x%x>)
r �maxsizer r r �_sysex�sys�exc_info�getattr�str� __class__r'