HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/softwareproperties/__pycache__/CountryInformation.cpython-38.pyc
U

��d��@s0ddlZddlZddlmZGdd�de�ZdS)�N)�ElementTreec@seZdZdd�Zdd�ZdS)�CountryInformationc
Cs�i|_d}tj�|�r�t|d�}|�d�}|D]V}d|jkrH|jd}n
|jd}d|jkrh|jd}n
|jd}t�d|�|j|<q.d|_	d|_
tjd	d
d�}|�d�}|�d
�}	|	dkr�t
|�}	||d|	�|_
|�|j
�|_	dS)Nz%/usr/share/xml/iso-codes/iso_3166.xml)�fileZiso_3166_entryZcommon_name�nameZalpha_2_codeZalpha_3_codeZiso_3166ZLANGzen.UK)�default�_�.����)�	countries�os�path�existsrZgetiteratorZattrib�gettext�dgettextZcountry�code�getenv�find�len�get_country_name)
�self�fnameZet�itZelmZdescrrZlocale�a�z�r�G/usr/lib/python3/dist-packages/softwareproperties/CountryInformation.py�__init__s,







zCountryInformation.__init__cCs ||jkr|j|}|S|SdS)N)r)rrrrrrr7s

z#CountryInformation.get_country_nameN)�__name__�
__module__�__qualname__rrrrrrrsr)rrZxml.etree.ElementTreer�objectrrrrr�<module>s