File: //lib/python3/dist-packages/twisted/application/__pycache__/app.cpython-38.pyc
U
��W[�[ � @ s� d dl mZmZmZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlmZ d dl
mZmZmZ d dlmZmZ d dlmZ d dlmZ d dlmZmZmZmZmZmZ d d lm Z d d
l!m"Z"m#Z#m$Z$ d dl%m&Z& d dl'm(Z( d d
l'm)Z) G dd� de*�Z+G dd� de+�Z,G dd� de+�Z-G dd� de*�Z.G dd� de*�Z/dd� Z0d2dd�Z1dd� Z2dd� Z3G d d!� d!e*�Z4d"d#� Z5d$d%� Z6e G d&d'� d'��Z7G d(d)� d)ej8e7�Z9d*d+� Z:d,d-� Z;d.d/� Z<d0d1� Z=dS )3� )�absolute_import�division�print_functionN)�
attrgetter)� copyright�plugin�logger)�service�reactors)�defer)�sob)�runtime�log�usage�failure�util�logfile)� _oldStyle)�qual�namedAny�namedModule)�_ISupportsExitSignalCapturing)�installReactor)�
NoSuchReactorc @ s e Zd ZdZdd� Zdd� ZdS )�_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 C s || _ || _d S �N)�
profileOutput� saveStats)�selfr r � r �9/usr/lib/python3/dist-packages/twisted/application/app.py�__init__) s z_BasicProfiler.__init__c C s d||f }|d7 }t |��dS )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 %s: %sz�
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.
N)�
SystemExit)r �module�e�sr r r �_reportImportError. s z!_BasicProfiler._reportImportErrorN)�__name__�
__module__�__qualname__�__doc__r! r&