Current File : //lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyc |
�
��\c @ sd d d l Z d d l Z d d l m Z d d l m Z e j j � Z d e j
f d � � YZ d S( i����Ni ( t base( t commandst cpulist_packc B s e Z d Z d � Z d � Z RS( 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.
c C s t t | � j d d � d S( NR i ( t superR t __init__( t self( ( sR /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyR s c C sH t t | � j | � s d Sd j d � | j j d j | � � D� � S( Nt ,c s s | ] } t | � Vq d S( N( t str( t .0t v( ( sR /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pys <genexpr> s s ,,( R R t executet Nonet joint _cmd( R t args( ( sR /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyR
s ( t __name__t
__module__t __doc__R R
( ( ( sR /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyR s ( t ost
tuned.logst tunedt R t tuned.utils.commandsR t logst gett logt FunctionR ( ( ( sR /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_pack.pyt <module> s