관리-도구
편집 파일: capabilities.cpython-36.pyc
3 e�$g � @ s� d dl mZ d dl mZ yd dlZW n ek r@ d dlZY nX d dlZejddd�Ze ed�sjeje_ ej Zdd idd idd idd idd idd idd idd id�Zdd � Z G dd� dej�ZdS )� )�config)� up2dateErrorsNzrhn-client-toolsT)Zfallback�ugettext�versionZ21�1)�caneatCheese�supportsAutoUp2dateOptionzregistration.finish_messagez xmlrpc.packages.extended_profilezregistration.delta_packagesz registration.update_contact_infoz$registration.extended_update_supportzregistration.smbiosc C s� d }| j d�}g }x�|D ]�}ydd� |j dd�D �\}}W n tk rP wY nX |j dd�\}}|d dkrvtd� |d d� }||d �}|j||f� qW |S )N�,c S s g | ]}|j � �qS � )�strip)�.0�ir r �"/usr/lib/python3.6/capabilities.py� <listcomp># s zparseCap.<locals>.<listcomp>�=� �(�)z2something broke in parsing the capabilited headers)r �value���r )�split� ValueError�print�append) Z capstringr Zcaps�capslist�capZkey_version�keyr �datar r r �parseCap s r c @ sN e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z ddd�Z dS )�Capabilitiesc C s&