def NotEmpty():
@wraps(NotEmpty)<EOL>def built(value):<EOL><INDENT>if not isinstance(value, six.string_types) or not value:<EOL><INDENT>raise Error("<STR_LIT>")<EOL><DEDENT>return value<EOL><DEDENT>return built<EOL>
Creates a validator that validates the given string is not empty. Will
raise an error for non-string types.