File: //lib/python3/dist-packages/twisted/internet/__pycache__/_dumbwin32proc.cpython-38.pyc
U
W[33 � @ sJ d Z ddlmZmZmZ ddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZe
�� Zde_ddlmZ ddlmZmZmZ ddlmZmZ ddlmZ dd lmZ dd
lm Z ddlm!Z! ddl"m#Z# eee$ed
d��dd� �Z%dd� Z&G dd� de!j'�Z(dd� Z)dd� Z*eeee�G dd� de!j+e#��Z,dS )z-
http://isometri.cc/strips/gates_in_the_head
� )�absolute_import�division�print_functionN� )�implementer)�IProcessTransport� IConsumer� IProducer)�items�_PY3)�quoteArguments)�
_replaceIf)�error)�_pollingfile)�BaseProcess�fsdecodec C s t | t�r| �t�� �S | S dS )z�
Decode a string to a L{unicode} representation, passing
through existing L{unicode} unchanged.
@param x: The string to be conditionally decoded.
@type x: L{bytes} or L{unicode}
@return: L{unicode}
N)�
isinstance�bytes�decode�sys�getfilesystemencoding)�x� r �A/usr/lib/python3/dist-packages/twisted/internet/_dumbwin32proc.py� _fsdecode* s
r c C s t | � tj�� d S �N)�printr �stdout�flush)�msgr r r �debug<