ó ±2öYc@s`ddlZddlZddlZddlmZejjƒZdej fd„ƒYZ dS(iÿÿÿÿN(tcommandst cpulist_packcBs eZdZd„Zd„ZRS(sÊ 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. cCs t|j|ƒjddƒdS(NRi(tsupert __class__t__init__(tself((sR/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyRscCsKt|j|ƒj|ƒsdSdjd„|jjdj|ƒƒDƒƒS(Nt,css|]}t|ƒVqdS(N(tstr(t.0tv((sR/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pys ss,,(RRtexecutetNonetjoint_cmdR(Rtargs((sR/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyR s(t__name__t __module__t__doc__RR (((sR/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyRs ( tost tuned.logsttunedtbasettuned.utils.commandsRtlogstgettlogtFunctionR(((sR/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyts