def _validate_flavor_parameter(flavor):
 if (flavor is not None):
  if (flavor == 'sqlite'):
   warnings.warn("the 'flavor' parameter is deprecated and will be removed in a future version, as 'sqlite' is the only supported option when SQLAlchemy is not installed.", FutureWarning, stacklevel=2)
  else:
   raise ValueError('database flavor {flavor} is not supported'.format(flavor=flavor))

def _validate_flavor_parameter ( flavor ) : if ( flavor is not None ) : if ( flavor == 'sqlite' ) : warnings . warn ( "the 'flavor' parameter is deprecated and will be removed in a future version, as 'sqlite' is the only supported option when SQLAlchemy is not installed." , FutureWarning , stacklevel = 2 ) else : raise ValueError ( 'database flavor {flavor} is not supported' . format ( flavor = flavor ) )
checks whether a database flavor was specified .