| Server IP : 35.80.110.71 / Your IP : 216.73.216.52 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/utils/tests/__pycache__/ |
Upload File : |
�
}�e� � � � d dl Z d dlZd dlmZ ej
j
e� Zej
j ed� Z
d� Zd� Zd� Z
y)� N)�openpyz../../core/tests/nonascii.pyc � � t t d� 5 } t j | j � \ }}d d d � dk( sJ �y # 1 sw Y �xY w)N�rb�
iso-8859-5)�open�
nonascii_pathr �detect_encoding�readline)�f�enc�liness �A/usr/lib/python3/dist-packages/IPython/utils/tests/test_openpy.py�test_detect_encodingr
sI � �
�m�T� "� 8�a��+�+�A�J�J�7�
��U�8��,����8� 8�s �#A�A
c � � t j t d�� 5 } | j � }d d d � t j
t d�� }|k( sJ �d|v sJ �t j
t d�� }d|vsJ �y # 1 sw Y �SxY w)Nr )�encodingF��skip_encoding_cookie�coding: iso-8859-5T)�ior r �readr �read_py_file)r �read_specified_enc�read_detected_enc�read_strip_enc_cookies r �test_read_filer s� � � ����� 6� &�!��V�V�X��&��+�+�M�PU�V��� 2�2�2�2��#4�4�4�4�"�/�/��D��� �'<�<�<�<�&� &�s �A?�?Bc �J � t j t d� 5 } | j � }d d d � t j
d�� j
� |j d� j
� k( sJ �t j
|d�� }d|vsJ �y # 1 sw Y �nxY w)Nr Fr r Tr )r r r r r �source_to_unicode�
splitlines�decode)r �source_bytes�source_no_cookies r �test_source_to_unicoder"