⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib64
/
python3.9
/
site-packages
/
gi
/
__pycache__
/
View File Name :
_option.cpython-39.pyc
a f¥_T3 ã @ s° d Z ddlZddlZddlmZmZmZmZmZ ddlm Z ddl mZ ddlm Z e dƒZe e ¡ ¡Zg d ¢ZG d d„ dejƒZG dd „ d ejƒZG dd„ dejƒZeZdS )a, GOption command line parser Extends optparse to use the GOptionGroup, GOptionEntry and GOptionContext objects. So it is possible to use the gtk, gnome_program and gstreamer command line groups and contexts. Use this interface instead of the raw wrappers of GOptionContext and GOptionGroup in glib. é N)Ú OptParseErrorÚOptionErrorÚOptionValueErrorÚBadOptionErrorÚOptionConflictErroré )Úget_introspection_module)Ú_gi)ÚGErrorÚGLib) r r r r r ÚOptionÚOptionGroupÚOptionParserÚmake_optionc @ sN e Zd ZdZejjd Zejjg d¢ Zdej Z dd„ Zdd„ Zd d „ Z dS )r a¹ Represents a command line option To use the extended possibilities of the GOption API Option (and make_option) are extended with new types and attributes. Types: filename The supplied arguments are read as filename, GOption parses this type in with the GLib filename encoding. :ivar optional_arg: This does not need a arguement, but it can be supplied. :ivar hidden: The help list does not show this option :ivar in_main: This option apears in the main group, this should only be used for backwards compatibility. Use Option.REMAINING as option name to get all positional arguments. .. NOTE:: Every argument to an option is passed as utf-8 coded string, the only exception are options which use the 'filename' type, its arguments are passed as strings in the GLib filename encoding. For further help, see optparse.Option. )Úfilename)ÚhiddenÚin_mainÚoptional_argú--c O s^ t jj| g|¢R i |¤Ž | js(tdƒ‚t| jƒt| jƒk rDtdƒ‚| jsZtd| jd ƒ‚d S )Nz!%s at least one long option name.z;%s at least more long option names than short option names.z%s needs a help message.r )Úoptparser Ú__init__Ú _long_optsÚ ValueErrorÚlenÚ_short_optsÚhelp©ÚselfÚargsÚkwargs© r ú0/usr/lib64/python3.9/site-packages/gi/_option.pyr ^ s ÿzOption.__init__c C sF | j |v r| j | j ¡ tj | |¡ t| jƒt| jƒkrBtdƒ‚d S )NzCgoption.Option needs more long option names than short option names) Ú REMAININGr Úappendr r Ú_set_opt_stringr r r )r Zoptsr r r! r$ j s zOption._set_opt_stringc c sð d}| j r|tjjO }| jr(|tjjO }| ¡ rD| jrP|tjjO }n|tjj O }| j dkrf|tjjO }t| j | jƒD ]@\}}|d }t|tƒs˜| d¡}|dd … ||| j| jfV qt| j t| jƒd … D ] }|dd … d|| j| jfV qÊd S )Nr r r zutf-8é ó )r r ZOptionFlagsZHIDDENr ZIN_MAINZtakes_valuer ZOPTIONAL_ARGZNO_ARGÚtypeZFILENAMEÚzipr r Ú isinstanceÚbytesÚencoder Úmetavarr )r ÚflagsZ long_nameZ short_nameZshort_bytesr r r! Ú_to_goptionentriesr s$ zOption._to_goptionentriesN)Ú__name__Ú __module__Ú__qualname__Ú__doc__r r ZTYPESZATTRSr ZOPTION_REMAININGr" r r$ r. r r r r! r 7 s r c @ s<