def GetRunlevelsNonLSB(states):
 if (not states):
  return set()
 convert_table = {'0': '0', '1': '1', '2': '2', '3': '3', '4': '4', '5': '5', '6': '6', 'S': '1', 's': '1'}
 _LogInvalidRunLevels(states, convert_table)
 return set([convert_table[s] for s in states.split() if (s in convert_table)])

def GetRunlevelsNonLSB ( states ) : if ( not states ) : return set ( ) convert_table = { '0' : '0' , '1' : '1' , '2' : '2' , '3' : '3' , '4' : '4' , '5' : '5' , '6' : '6' , 'S' : '1' , 's' : '1' } _LogInvalidRunLevels ( states , convert_table ) return set ( [ convert_table [ s ] for s in states . split ( ) if ( s in convert_table ) ] )
accepts a string and returns a list of strings of numeric lsb runlevels .