def _sprinkle(config_str):
 parts = [x for sub in config_str.split('{') for x in sub.split('}')]
 for i in range(1, len(parts), 2):
  parts[i] = str(__grains__.get(parts[i], ''))
 return ''.join(parts)

def _sprinkle ( config_str ) : parts = [ x for sub in config_str . split ( '{' ) for x in sub . split ( '}' ) ] for i in range ( 1 , len ( parts ) , 2 ) : parts [ i ] = str ( __grains__ . get ( parts [ i ] , '' ) ) return '' . join ( parts )
sprinkle with grains of salt .