def __check_identifier(setup, Candidate, Name): value = setup.__dict__[Candidate] if is_identifier(value): return CommandLineOption = SETUP_INFO[Candidate][0] error_msg("%s must be a valid identifier (%s).\n" % (Name, repr(CommandLineOption)[1:-1]) + \ "Received: '%s'" % value)
def __check_identifier(setup, Candidate, Name): value = setup.__dict__[Candidate] if is_identifier(value): return CommandLineOption = "" if type(SETUP_INFO) == list: CommandLineOption = " (%s)" % str(SETUP_INFO[Candidate][0])[-1:1] error.log("%s must be a valid identifier%s.\n" % (Name, CommandLineOption) + \ "Received: '%s'" % value)