def var_count_error(is_independent, is_plotting):
 if is_plotting:
  v = 'Plotting'
 else:
  v = 'Registering plot modes'
 if is_independent:
  (n, s) = (PlotMode._i_var_max, 'independent')
 else:
  (n, s) = (PlotMode._d_var_max, 'dependent')
 return ('%s with more than %i %s variables is not supported.' % (v, n, s))

def var_count_error ( is_independent , is_plotting ) : if is_plotting : v = 'Plotting' else : v = 'Registering plot modes' if is_independent : ( n , s ) = ( PlotMode . _i_var_max , 'independent' ) else : ( n , s ) = ( PlotMode . _d_var_max , 'dependent' ) return ( '%s with more than %i %s variables is not supported.' % ( v , n , s ) )
used to format an error message which differs slightly in 4 places .