def validate_pack_name(name):
 if (not name):
  raise ValueError('Content pack name cannot be empty')
 if (name.lower() in USER_PACK_NAME_BLACKLIST):
  raise ValueError(('Name "%s" is blacklisted and can\'t be used' % name.lower()))
 return name

def validate_pack_name ( name ) : if ( not name ) : raise ValueError ( 'Content pack name cannot be empty' ) if ( name . lower ( ) in USER_PACK_NAME_BLACKLIST ) : raise ValueError ( ( 'Name "%s" is blacklisted and can\'t be used' % name . lower ( ) ) ) return name
validate the content pack name .