Format: application/x-python-code
1 o
2
3 ��hB � @ s| d Z ddlZddlZddlmZ ddd�Zddd�Zdd d
4 �Zdd� Z ddd�Z
5 ddd�Ze�� dkZ
6 ddd�Ze ZZdS )z�Compatibility tricks for Python 3. Mainly to do with unicode.
7
8 This file is deprecated and will be removed in a future version.
9 � N� )�DEFAULT_ENCODINGc C � |pt }| �|d�S �N�replace)r �decode��s�encoding� r �Mc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/utils/py3compat.pyr � r c C r r )r �encode)�ur
10 r r r r r
11 r c C s t | t�r
12 t| |�S | S �N)�
13 isinstance�bytesr r r r r �cast_unicode s
14
15 r c C s>