golden hour
/opt/saltstack/salt/lib/python3.10/site-packages/salt/ext/tornado/__pycache__
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.cpython-310.pyc
378 B
Del
OK
_locale_data.cpython-310.pyc
3.23 KB
Del
OK
auth.cpython-310.pyc
39.18 KB
Del
OK
autoreload.cpython-310.pyc
7.02 KB
Del
OK
concurrent.cpython-310.pyc
17.24 KB
Del
OK
curl_httpclient.cpython-310.pyc
12.8 KB
Del
OK
escape.cpython-310.pyc
9.89 KB
Del
OK
gen.cpython-310.pyc
38.39 KB
Del
OK
http1connection.cpython-310.pyc
19.47 KB
Del
OK
httpclient.cpython-310.pyc
25.19 KB
Del
OK
httpserver.cpython-310.pyc
11.45 KB
Del
OK
httputil.cpython-310.pyc
29.84 KB
Del
OK
ioloop.cpython-310.pyc
33.19 KB
Del
OK
iostream.cpython-310.pyc
42.97 KB
Del
OK
locale.cpython-310.pyc
15.22 KB
Del
OK
locks.cpython-310.pyc
16.61 KB
Del
OK
log.cpython-310.pyc
8.07 KB
Del
OK
netutil.cpython-310.pyc
14.32 KB
Del
OK
options.cpython-310.pyc
19.63 KB
Del
OK
process.cpython-310.pyc
10.27 KB
Del
OK
queues.cpython-310.pyc
11.29 KB
Del
OK
routing.cpython-310.pyc
21.08 KB
Del
OK
simple_httpclient.cpython-310.pyc
16.08 KB
Del
OK
stack_context.cpython-310.pyc
10.65 KB
Del
OK
tcpclient.cpython-310.pyc
6.49 KB
Del
OK
tcpserver.cpython-310.pyc
10.06 KB
Del
OK
template.cpython-310.pyc
30.52 KB
Del
OK
testing.cpython-310.pyc
24.61 KB
Del
OK
util.cpython-310.pyc
13.72 KB
Del
OK
web.cpython-310.pyc
105.22 KB
Del
OK
websocket.cpython-310.pyc
39.08 KB
Del
OK
wsgi.cpython-310.pyc
11.5 KB
Del
OK
Edit: escape.cpython-310.pyc
o �xeV8 � @ s� d Z ddlmZmZmZ ddlZddlZddlmZm Z m Z er5ddlmZ ddlmZ ddlmZ eZnddlmZ ddlZddlZzddlZW n eyR Y nw e�d�Zddd d dd�Zd d� Zdd� Zdd� Zdd� Zdd� Z d3dd�Z!es�d4dd�Z"e Z#n d4dd�Z"d5dd �Z#e$e%d�fZ&d!d"� Z'e e%d�fZ(d#d$� Z)e)Z*e+e u r�e)Z,ne'Z,e e%d�fZ-d%d&� Z.d'd(� Z/e�e)d)��Z0dd*dd+d,gfd-d.�Z1d/d0� Z2d1d2� Z3e3� Z4dS )6z�Escaping/unescaping methods for HTML, JSON, URLs, and others. Also includes a few other miscellaneous string manipulation functions that have crept in over time. � )�absolute_import�division�print_functionN)�PY3�unicode_type�basestring_type)�parse_qsz[&<>"']z&z<z>z"z')�&�<�>�"�'c C s t �dd� t| ��S )a0 Escapes a string so it is valid within HTML or XML. Escapes the characters ``<``, ``>``, ``"``, ``'``, and ``&``. When used in attribute values the escaped strings must be enclosed in quotes. .. versionchanged:: 3.2 Added the single quote to the list of escaped characters. c S s t | �d� S )Nr )�_XHTML_ESCAPE_DICT�group)�match� r �K/opt/saltstack/salt/lib/python3.10/site-packages/salt/ext/tornado/escape.py�<lambda>? s zxhtml_escape.<locals>.<lambda>)�_XHTML_ESCAPE_RE�sub� to_basestring��valuer r r �xhtml_escape4 s �r c C s t �dtt| ��S )z!Un-escapes an XML-escaped string.z&(#?)(\w+?);)�rer �_convert_entity�_unicoder r r r �xhtml_unescapeC � r c C s t �| ��dd�S )z%JSON-encodes the given Python object.z</z<\/)�json�dumps�replacer r r r �json_encodeK s r"