File: //usr/lib/python3/dist-packages/mercurial/__pycache__/sshpeer.cpython-310.pyc
o
�]Lb@Z � @ s� d dl mZ d dlZd dlZddlmZ ddlmZ ddlm Z mZm
Z
mZmZm
Z
ddlmZmZmZ dd � Zddd�ZG d
d� de�Zdd� Zddd�Zdd� Zdd� ZG dd� dej�Zd dd�Zd!dd�ZdS )"� )�absolute_importN� )�_)�getattr)�error�pycompat�util�wireprototypes�wireprotov1peer�wireprotov1server)�procutil�
stringutil�urlutilc C s( | s| S t �d| �r| S d| �dd� S )z=quote a string for the remote shell ... which we assume is shs [a-zA-Z0-9@%_+=:,./-]*$s '%s'� 's '\'')�re�match�replace)�s� r �3/usr/lib/python3/dist-packages/mercurial/sshpeer.py�_serverquote s
r Fc C sV |r#|j s%t�|�}|r'|r| jn| j}|�� D ]}|td�|d� qdS dS dS dS )zYdisplay all data currently available on pipe as remote output.
This is non blocking.� remote: �
N)�closedr �readpipe�warn�status�
splitlinesr )�ui�piper r �display�lr r r �_forwardoutput'