/usr/local/lib/python3.9/site-packages/future/utils/__pycache__
Edit: /usr/local/lib/python3.9/site-packages/future/utils/__pycache__/surrogateescape.cpython-39.pyc (3816B)
a
^Eg @ s d Z ddlZddlZddlmZ dZdd Zdd ZejrHe Z
d d
ZneZ
e Zdd Z
G d
d deZdd Zdd Zdd Zdd ZdZedZedZeejZdd ZedkrdS )z
This is Victor Stinner's pure-Python implementation of PEP 383: the "surrogateescape" error
handler of Python 3.
Source: misc/python/surrogateescape.py in https://bitbucket.org/haypo/misc
N)utilssurrogateescapec C s t jr
| S | dS d S )Nunicode_escape)r PY3decode)text r F/usr/local/lib/python3.9/site-packages/future/utils/surrogateescape.pyu s r
c C s t jr| dS | S d S )Nlatin1)r r encode)datar r r b s
r c C s
t | fS N)bytes)coder r r
# r c C sd | j | j| j }z0t| tr(t|}nt| tr