File: //usr/lib/python3/dist-packages/mercurial/__pycache__/urllibcompat.cpython-310.pyc
o
�]Lb� � @ s d dl mZ ddlmZ ddlmZ ejZG dd� de�Ze� Z e� Z
e� Zejr�d dl
Ze
�ejd� e
�ejd d
� e
�ejdd� e
�ejd
d� d dlZe
�ejd� d dlZe
�ejd� d dlZe�ejd� d dlZe �ejd� d.dd�Zd/dd�Zee
_ee
_dd� Zdd� Zdd� Zdd � Z d!d"� Z!dS d dl"Z"d dl#Z#d dl$Z$d dl%Z%d dlZd dl&Z&e
�ed#� e
�e%d$� e
�e&d%� e
�e&d d
� e
�e&dd� e�e%d� e �e"d&� e �e$d'� e �e#d(� d)d� Zd*d� Zd+d� Zd,d � Z d-d"� Z!dS )0� )�absolute_import� )�getattr)�pycompatc @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S )
�
_pycompatstubc C s
i | _ d S �N)�_aliases)�self� r
�8/usr/lib/python3/dist-packages/mercurial/urllibcompat.py�__init__ �
z_pycompatstub.__init__c s( t t|�}| j�� fdd�|D �� dS )z4Add items that will be populated at the first accessc 3 s( � | ]}|� d d��� � |ffV qdS )�_� N)�replace�lower)�.0�item��originr
r � <genexpr> s �
�z1_pycompatstub._registeraliases.<locals>.<genexpr>N)�map�_sysstrr �update)r r �itemsr
r r �_registeraliases s
�z_pycompatstub._registeraliasesc C s |t |�f| jt |�<