def __kwargs_option_to_dict(raw_value):
 kwargs = {}
 if raw_value:
  for binding in raw_value.split(','):
   (name, value) = binding.split('=')
   if (value.lower() == 'true'):
    value = True
   elif (value.lower() == 'false'):
    value = False
   elif value.isdigit():
    value = int(value)
   kwargs[name] = value
 return kwargs

def __kwargs_option_to_dict ( raw_value ) : kwargs = { } if raw_value : for binding in raw_value . split ( ',' ) : ( name , value ) = binding . split ( '=' ) if ( value . lower ( ) == 'true' ) : value = True elif ( value . lower ( ) == 'false' ) : value = False elif value . isdigit ( ) : value = int ( value ) kwargs [ name ] = value return kwargs
convert comma-delimted kwargs argument into a normalized dictionary .