Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/DistUpgrade/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/DistUpgrade/__pycache__/DistUpgradeConfigParser.cpython-310.pyc
o

>I�c��@s�ddlmZmZddlmZddlZddlZddlZddl	Z	dZ
Gdd�de�Zedkreed�Z
ee
�d	d
��ee
�d	d��ee
�dd
��ee
�d	dd��ee
�d	dd��ee
�d	dd��dSdS)�)�
NoOptionError�NoSectionError)�ConfigParserNz&/etc/update-manager/release-upgrades.dc@s2eZdZ		ddd�Zdd�Zdd�Zd	d
�ZdS)�DistUpgradeConfig�DistUpgrade.cfgNcCs�t�|�tjgd�tjdd���d��}||_tj	�
||�}tj	�|d|�r0|d|7}g|_|rEt
�
|d�D]}|j�|�q<|j|g7_|durSt}|durgt
�
|d�D]}|j�|�q^|�|j�dS)N)�lsb_releasez-cz-sT)�stdout�universal_newlinesr�.z/*.cfg)�SafeConfigParser�__init__�
subprocess�Popen�PIPE�communicate�strip�datadir�os�path�join�exists�config_files�glob�append�CONFIG_OVERRIDE_DIR�read)�selfr�name�override_dir�defaults_dir�from_release�maincfg�cfg�r#�E/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeConfigParser.pyr"s0

���zDistUpgradeConfig.__init__c	Csxz.t|�tkr|�||�WSt|�tkr|�||�WSt|�tkr(|�||�WS|�||�WStt	fy;|YSw)N)
�type�bool�
getboolean�float�getfloat�int�getint�getrr)r�section�option�defaultr#r#r$�getWithDefault=s�z DistUpgradeConfig.getWithDefaultc	CsDz|�||�}Wn
ttfygYSwdd�|�d�D�}|S)NcS�g|]}|���qSr#�r��.0�xr#r#r$�
<listcomp>N�z-DistUpgradeConfig.getlist.<locals>.<listcomp>�,)r,rr�split)rr-r.�tmp�itemsr#r#r$�getlistIs�zDistUpgradeConfig.getlistcCs�z|�||�}WntygYSwtj�|j|�}tj�|�s)t�d|�t	|��}dd�|D�}Wd�n1s?wYdd�|D�S)NzgetListFromFile: no '%s' foundcSr1r#r2r3r#r#r$r6Zr7z5DistUpgradeConfig.getListFromFile.<locals>.<listcomp>cSs"g|]
}|�d�s|dks|�qS)�#�)�
startswith)r4�sr#r#r$r6[s")
r,rrrrrr�logging�error�open)rr-r.�filename�p�fr;r#r#r$�getListFromFileQs�
�z!DistUpgradeConfig.getListFromFile)rNN)�__name__�
__module__�__qualname__rr0r<rGr#r#r#r$r!s
�r�__main__r
�Distro�MetaPkgs�ForcedPurges�Sources�ValidMirrors�EnableApportT�Foo�False)�configparserrrrrr
�os.pathrrArrrrH�c�printr<rGr0�setr#r#r#r$�<module>s"=�

Spamworldpro Mini