Your IP : 216.73.216.213
B
:��]� � @ s d Z ddlmZmZ ddlZddlZddlmZ ddlm Z m
Z
ddlmZ ddl
mZ ddlmZ d d
d�ZG dd
� d
e�ZG dd� de j�Zd i dddfdd�ZG dd� de j�Zd i ddfdd�ZG dd� de j�Zd i dddfdd�Zdd� Zdd� Zdd� ZdddddgZdS )!z
Utility methods.
� )�division�absolute_importN)�wraps)�protocol�defer)�failure)�reraise)�BytesIO� c C sJ |d krddl m} t�� }| |f|�� }|�|||ft|� ||� |S )Nr )�reactor)�twisted.internetr r �DeferredZspawnProcess�tuple) r �
executable�args�env�pathr � protoArgs�d�pr
r
�I/opt/alt/python37/lib64/python3.7/site-packages/twisted/internet/utils.py�_callProtocolWithDeferred s r c @ s e Zd ZdZdd� ZdS )�_UnexpectedErrorOutputay
Standard error data was received where it was not expected. This is a
subclass of L{IOError} to preserve backward compatibility with the previous
error behavior of L{getProcessOutput}.
@ivar processEnded: A L{Deferred} which will fire when the process which
produced the data on stderr has ended (exited and all file descriptors
closed).
c C s t �| d|f � || _d S )Nzgot stderr: %r)�IOError�__init__�processEnded)�self�textr r
r
r r - s z_UnexpectedErrorOutput.__init__N)�__name__�
__module__�__qualname__�__doc__r r
r
r
r r "