| Server IP : 188.114.96.3 / Your IP : 216.73.216.30 Web Server : LiteSpeed System : Linux vmi2710904 5.15.0-144-generic #157-Ubuntu SMP Mon Jun 16 07:33:10 UTC 2025 x86_64 User : rarch5794 ( 1006) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/python/__pycache__/ |
Upload File : |
o
�b� � @ sd d Z ddlZddlZddlZddlZddlZddlmZ ddlmZm Z ddl
mZmZ G dd� de
�ZeZG dd � d �ZG d
d� de�ZdZd
ZG dd� d�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG d d!� d!e�ZG d"d#� d#�Zd,d%d&�Z d-d'd(�Z!d)d*� Z"d+e"_#dS ).a
twisted.python.usage is a module for parsing/handling the
command line of your program.
For information on how to use it, see
U{http://twistedmatrix.com/projects/core/documentation/howto/options.html},
or doc/core/howto/options.xhtml in your Twisted directory.
� N)�path)�Optional�cast)�reflect�utilc @ s e Zd ZdS )�
UsageErrorN)�__name__�
__module__�__qualname__� r r �6/usr/lib/python3/dist-packages/twisted/python/usage.pyr s r c @ � e Zd ZdZdd� Zdd� ZdS )�CoerceParameterzE
Utility class that can corce a parameter before storing it.
c C s || _ || _t| jdd�| _dS )zq
@param options: parent Options object
@param coerce: callable used to coerce the value.
� coerceDoc� N)�options�coerce�getattr�doc)�selfr r r r r �__init__* s zCoerceParameter.__init__c
C s^ |du rt d|� d���z| �|�}W n ty& } zt d|� ���d}~ww || jj|<