�
Ϫ�fpZ � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl m
Z
mZmZ d dl
mZmZ d dlmZmZ d dlmZ d dlmZ d dlmZ d d lmZmZmZmZmZmZ d d
l m!Z!m"Z"m#Z# G d� d� Z$ G d
� de$� Z% G d� de$� Z& G d� d� Z' G d� d� Z(d� Z)d%d�Z*d� Z+d� Z, G d� d� Z-d� Z.d� Z/ G d� d� Z0 G d� d ejb e0� Z2d!� Z3d"� Z4d#� Z5d$� Z6y)&� N)�
attrgetter)� copyright�logger�plugin)�reactors�service)�
NoSuchReactor�installReactor)�defer)�_ISupportsExitSignalCapturing)�sob)�failure�log�logfile�runtime�usage�util)�namedAny�namedModule�qualc � � e Zd ZdZd� Zd� Zy)�_BasicProfilerz�
@ivar saveStats: if C{True}, save the stats information instead of the
human readable format
@type saveStats: C{bool}
@ivar profileOutput: the name of the file use to print profile data.
@type profileOutput: C{str}
c � � || _ || _ y �N)�
profileOutput� saveStats)�selfr r s �9/usr/lib/python3/dist-packages/twisted/application/app.py�__init__z_BasicProfiler.__init__% s � �*���"��� c �2 � d|� d|� �}|dz
}t |� �)z�
Helper method to report an import error with a profile module. This
has to be explicit because some of these modules are removed by
distributions due to them being non-free.
zFailed to import module �: z�
This is most likely caused by your operating system not including
the module due to it being non-free. Either do not use the option
--profile, or install the module; your operating system vendor
may provide it in a separate package.
)�
SystemExit)r �module�e�ss r �_reportImportErrorz!_BasicProfiler._reportImportError) s1 � � '�v�h�b���4�� � � �� ��m�r N)�__name__�
__module__�__qualname__�__doc__r r' |