Cleanup: spelling in comments, white-space in comments

This commit is contained in:
Campbell Barton
2023-10-19 18:53:16 +11:00
parent 4a813ba5af
commit e7e4e63313
56 changed files with 90 additions and 87 deletions

View File

@@ -153,7 +153,6 @@ if(WITH_PYTHON AND WITH_PYTHON_INSTALL AND WITH_INSTALL_PORTABLE AND (NOT WIN32)
find_python_module_file("certifi/cacert.pem" PYTHON_SSL_CERT_FILE _python_ssl_cert_file_relative)
mark_as_advanced(PYTHON_SSL_CERT_FILE)
if (PYTHON_SSL_CERT_FILE)
# This always moves up one level (even if there is a trailing slash).
add_definitions(-DPYTHON_SSL_CERT_FILE="${_python_ssl_cert_file_relative}")
else()
message(WARNING

View File

@@ -672,7 +672,7 @@ PyDoc_STRVAR(
app_translations_locale_explode_doc,
".. method:: locale_explode(locale)\n"
"\n"
" Return all components and their combinations of the given ISO locale string.\n"
" Return all components and their combinations of the given ISO locale string.\n"
"\n"
" >>> bpy.app.translations.locale_explode(\"sr_RS@latin\")\n"
" (\"sr\", \"RS\", \"latin\", \"sr_RS\", \"sr@latin\")\n"

View File

@@ -6613,7 +6613,7 @@ static PyObject *pyrna_func_call(BPy_FunctionRNA *self, PyObject *args, PyObject
#ifdef DEBUG_STRING_FREE
# if 0
if (PyList_GET_SIZE(string_free_ls)) {
printf("%.200s.%.200s(): has %d strings\n",
printf("%.200s.%.200s(): has %d strings\n",
RNA_struct_identifier(self_ptr->type),
RNA_function_identifier(self_func),
int(PyList_GET_SIZE(string_free_ls)));
@@ -8710,7 +8710,7 @@ static int bpy_class_call(bContext *C, PointerRNA *ptr, FunctionRNA *func, Param
else if (ret_len == 1) {
err = pyrna_py_to_prop(&funcptr, pret_single, retdata_single, ret, "");
/* When calling operator functions only gives `Function.result` with no line number
/* When calling operator functions only gives `Function.result` with no line number
* since the function has finished calling on error, re-raise the exception with more
* information since it would be slow to create prefix on every call
* (when there are no errors). */