3 À<×e}ã@sHddlZddlZddlmZddlmZejjƒZ Gdd„dej ƒZ dS)éNé)Úbase)Úcommandscs,eZdZdZ‡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. cstt|ƒjddƒdS)Nrr)ÚsuperrÚ__init__)Úself)Ú __class__©ú+/usr/lib/python3.6/function_cpulist_pack.pyrszcpulist_pack.__init__cs6tt|ƒj|ƒsdSdjdd„|jjdj|ƒƒDƒƒS)Nú,css|]}t|ƒVqdS)N)Ústr)Ú.0Úvr r r ú sz'cpulist_pack.execute..z,,)rrÚexecuteÚjoinZ_cmd)rÚargs)r r r rszcpulist_pack.execute)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrÚ __classcell__r r )r r rs r) ÚosZ tuned.logsZtunedÚrZtuned.utils.commandsrZlogsÚgetÚlogZFunctionrr r r r Ús