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 ú