View file File name : IniFile.cpython-36.opt-1.pyc Content :3 ��P�2 � @ sv d Z ddlZddlZddlZddlZddlmZmZmZm Z m Z mZmZ ddl ZddlmZ dd� ZG dd� d�ZdS ) z5 Base Class for DesktopEntry, IconTheme and IconData � N)�ParsingError�DuplicateGroupError�NoGroupError� NoKeyError�DuplicateKeyError�ValidationError�debug)�uc C s* y| j dd� dS tk r$ dS X dS )z>Return True if a string consists entirely of ASCII characters.�ascii�strictTFN)�encode�UnicodeError)�s� r �/usr/lib/python3.6/IniFile.py�is_ascii s r c @ s e Zd ZdZdZdZdZd=dd�Zdd� Zd>dd �Z d?dd�Z d d� Zdd� Zd@dd�Z dAdd�Zdd� Zdd� ZdBdd�Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� ZdCd*d+�ZdDd,d-�Zd.d/� Zd0d1� ZdEd3d4�Zd5d6� Zd7d8� ZdFd9d:�Z d;d<� Z!dS )G�IniFile� FNc C s t � | _|r| j|� d S )N)�dict�content�parse)�self�filenamer r r �__init__ s zIniFile.__init__c C s t | j|j�S )N)Zcmpr )r �otherr r r �__cmp__! s zIniFile.__cmp__c # C s� | j }tjj|�std|��ytj|dddd�}W n0 tk rb } ztrN|�ndS W Y dd}~X nX �x|D �]}|j � }|s�qlql|d dkr�qlql|d d kr�|j d �jd �}tr�| j|�r�t ||��ni ||<