File: //usr/lib/python3/dist-packages/mercurial/__pycache__/url.cpython-310.pyc
o
�]Lb;b � @ s� d dl mZ d dlZd dlZd dlZddlmZ ddlmZ ddl m
Z
mZmZ
mZmZmZmZmZ ddlmZmZ ejZejZejZejZd/dd �ZG d
d� de�ZG dd
� d
ej�Zdd� Ze�ed�ZG dd� dej �Zdd� Z!dd� Z"G dd� dej#�Z$G dd� dej �Z%G dd� de$�Z&er�G dd� dej �Z'G dd � d ej(ej)�Z)G d!d"� d"ej*�Z*G d#d$� d$ej+�Z+G d%d&� d&ej,�Z-g Z. ' (d0d)d*�Z/d1d+d,�Z0d-d.� Z1dS )2� )�absolute_importN� )�_)�getattr)�encoding�error�httpconnection� keepalive�pycompat�sslutil�urllibcompat�util)�
stringutil�urlutilc C s8 | � dd�} | � dd�} | � dd�} |r| � dd�} | S ) a1 Replace special characters "&", "<" and ">" to HTML-safe sequences.
If the optional flag quote is true, the quotation mark character (")
is also translated.
This is the same as cgi.escape in Python, but always operates on
bytes, whereas cgi.escape in Python 3 only works on unicodes.
� &s &� <s <� >s >� "s ")�replace)�s�quote� r �//usr/lib/python3/dist-packages/mercurial/url.py�escape'