Edit File: function_cpulist_pack.cpython-36.pyc
3 �<�e} � @ sH d dl Z d dlZddlmZ d dlmZ ejj� Z G dd� dej �ZdS )� N� )�base)�commandsc s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )�cpulist_packz� Conversion function: packs CPU list in form 1,2,3,5 to 1-3,5. The cpulist_unpack is used as a preprocessor, so it always returns optimal results. For details about input syntax see cpulist_unpack. c s t t| �jdd� d S )Nr r )�superr �__init__)�self)� __class__� �+/usr/lib/python3.6/function_cpulist_pack.pyr s zcpulist_pack.__init__c s6 t t| �j|�sd S djdd� | jjdj|��D ��S )N�,c s s | ]}t |�V qd S )N)�str)�.0�vr r r � <genexpr> s z'cpulist_pack.execute.<locals>.<genexpr>z,,)r r �execute�joinZ_cmd)r �args)r r r r s zcpulist_pack.execute)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r )r r r s r )�osZ tuned.logsZtuned� r Ztuned.utils.commandsr Zlogs�get�logZFunctionr r r r r �<module> s
Back to File Manager