관리-도구
편집 파일: aliases.cpython-36.pyc
3 �ft`� � @ s� d dl mZ d dl mZ d dlmZ d dlZd dlZd dlm Z d dl Zd dlZd dl Z d dlZd dlZe jd�ZdZejjed�Zejjed �ZG d d� de�ZG dd � d e�ZdS )� )�absolute_import)�unicode_literals)�_N)�PRIO_DEFAULT�dnfz/etc/dnf/aliases.d/zALIASES.confz USER.confc @ s, e Zd Zdd� Zedd� �Zedd� �ZdS )� AliasesConfigc C s$ || _ tjj� | _| jj| j � d S )N)�_path�libdnf�confZConfigParser�_parser�read)�self�path� r �/usr/lib/python3.6/aliases.py�__init__* s zAliasesConfig.__init__c C sH t jjd�}y|jt| jj� d d � W n tk r> Y nX |j� S )NT�main�enabled) r r � OptionBool�setr r ZgetData� IndexError�getValue)r �optionr r r r / s zAliasesConfig.enabledc C sV t j� }d}| jj|�s|S x4| jj|�D ]$}| jj||�}|sBq*|j� ||<