Cleanup: Spelling Mistakes

This patch fixes many minor spelling mistakes, all in comments or
console output. Mostly contractions like can't, won't, don't, its/it's,
etc.

Differential Revision: https://developer.blender.org/D11663

Reviewed by Harley Acheson
This commit is contained in:
Leon Zandman
2021-06-22 10:42:32 -07:00
committed by Harley Acheson
parent 2fcd3f0296
commit c317f111c1
139 changed files with 239 additions and 238 deletions

View File

@@ -1181,7 +1181,7 @@ PyDoc_STRVAR(
"\n"
" Custom-data layers are only copied from ``mesh`` on initialization.\n"
" Further calls will copy custom-data to matching layers, layers missing on the target "
"mesh wont be added.\n");
"mesh won't be added.\n");
static PyObject *bpy_bmesh_from_mesh(BPy_BMesh *self, PyObject *args, PyObject *kw)
{
static const char *kwlist[] = {"mesh", "face_normals", "use_shape_key", "shape_key_index", NULL};
@@ -2500,7 +2500,7 @@ PyDoc_STRVAR(
"\n"
" Running this on sequences besides :class:`BMesh.verts`, :class:`BMesh.edges`, "
":class:`BMesh.faces`\n"
" works but wont result in each element having a valid index, instead its order in the "
" works but won't result in each element having a valid index, instead its order in the "
"sequence will be set.\n");
static PyObject *bpy_bmelemseq_index_update(BPy_BMElemSeq *self)
{
@@ -3020,8 +3020,8 @@ static struct PyMethodDef bpy_bmfaceseq_methods[] = {
static struct PyMethodDef bpy_bmloopseq_methods[] = {
/* odd function, initializes index values */
/* no: index_update() function since we cant iterate over loops */
/* no: sort() function since we cant iterate over loops */
/* no: index_update() function since we can't iterate over loops */
/* no: sort() function since we can't iterate over loops */
{NULL, NULL, 0, NULL},
};

View File

@@ -523,7 +523,7 @@ PyObject *PyC_FrozenSetFromStrings(const char **strings)
/**
* Similar to #PyErr_Format(),
*
* Implementation - we cant actually prepend the existing exception,
* Implementation - we can't actually prepend the existing exception,
* because it could have _any_ arguments given to it, so instead we get its
* ``__str__`` output and raise our own exception including it.
*/
@@ -846,7 +846,7 @@ PyObject *PyC_DefaultNameSpace(const char *filename)
PyModule_AddStringConstant(mod_main, "__name__", "__main__");
if (filename) {
/* __file__ mainly for nice UI'ness
* note: this wont map to a real file when executing text-blocks and buttons. */
* note: this won't map to a real file when executing text-blocks and buttons. */
PyModule_AddObject(mod_main, "__file__", PyC_UnicodeFromByte(filename));
}
PyModule_AddObject(mod_main, "__builtins__", builtins);

View File

@@ -403,7 +403,7 @@ void BPy_init_modules(struct bContext *C)
Py_DECREF(py_modpath);
}
else {
printf("bpy: couldn't find 'scripts/modules', blender probably wont start.\n");
printf("bpy: couldn't find 'scripts/modules', blender probably won't start.\n");
}
/* stand alone utility modules not related to blender directly */
IDProp_Init_Types(); /* not actually a submodule, just types */

View File

@@ -154,8 +154,8 @@ void bpy_context_clear(bContext *UNUSED(C), const PyGILState_STATE *gilstate)
fprintf(stderr, "ERROR: Python context internal state bug. this should not happen!\n");
}
else if (py_call_level == 0) {
/* XXX - Calling classes currently wont store the context :\,
* cant set NULL because of this. but this is very flakey still. */
/* XXX - Calling classes currently won't store the context :\,
* can't set NULL because of this. but this is very flakey still. */
#if 0
BPY_context_set(NULL);
#endif
@@ -825,7 +825,7 @@ static void dealloc_obj_dealloc(PyObject *self)
{
bpy_module_delay_init(((dealloc_obj *)self)->mod);
/* Note, for subclassed PyObjects we cant just call PyObject_DEL() directly or it will crash */
/* Note, for subclassed PyObjects we can't just call PyObject_DEL() directly or it will crash */
dealloc_obj_Type.tp_free(self);
}
@@ -838,7 +838,7 @@ PyMODINIT_FUNC PyInit_bpy(void)
/* Problem:
* 1) this init function is expected to have a private member defined - 'md_def'
* but this is only set for C defined modules (not py packages)
* so we cant return 'bpy_package_py' as is.
* so we can't return 'bpy_package_py' as is.
*
* 2) there is a 'bpy' C module for python to load which is basically all of blender,
* and there is scripts/bpy/__init__.py,

View File

@@ -87,7 +87,7 @@ static PyObject *pyop_poll(PyObject *UNUSED(self), PyObject *args)
bContext *C = BPY_context_get();
if (C == NULL) {
PyErr_SetString(PyExc_RuntimeError, "Context is None, cant poll any operators");
PyErr_SetString(PyExc_RuntimeError, "Context is None, can't poll any operators");
return NULL;
}
@@ -174,7 +174,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
bContext *C = BPY_context_get();
if (C == NULL) {
PyErr_SetString(PyExc_RuntimeError, "Context is None, cant poll any operators");
PyErr_SetString(PyExc_RuntimeError, "Context is None, can't poll any operators");
return NULL;
}
@@ -367,7 +367,7 @@ static PyObject *pyop_as_string(PyObject *UNUSED(self), PyObject *args)
if (C == NULL) {
PyErr_SetString(PyExc_RuntimeError,
"Context is None, cant get the string representation of this object.");
"Context is None, can't get the string representation of this object.");
return NULL;
}

View File

@@ -210,7 +210,7 @@ static const EnumPropertyItem property_subtype_array_items[] = {
/**
* Store #PyObject data for a dynamically defined property.
* Currently this is only used to store call-back functions.
* Properties that don't use custom-callbacks wont allocate this struct.
* Properties that don't use custom callbacks won't allocate this struct.
*
* Memory/Reference Management
* ---------------------------
@@ -2264,7 +2264,7 @@ static void bpy_prop_callback_assign_enum(struct PropertyRNA *prop,
} \
(void)0
/* terse macros for error checks shared between all funcs cant use function
/* terse macros for error checks shared between all funcs can't use function
* calls because of static strings passed to pyrna_set_to_enum_bitfield */
#define BPY_PROPDEF_CHECK(_func, _property_flag_items, _property_flag_override_items) \
if (UNLIKELY(id_len >= MAX_IDPROP_NAME)) { \

View File

@@ -1647,7 +1647,7 @@ int pyrna_pydict_to_props(PointerRNA *ptr,
break;
}
item = PyDict_GetItemString(kw, arg_name); /* Wont set an error. */
item = PyDict_GetItemString(kw, arg_name); /* Won't set an error. */
if (item == NULL) {
if (all_args) {
@@ -6224,7 +6224,7 @@ static PyObject *pyrna_func_call(BPy_FunctionRNA *self, PyObject *args, PyObject
err = -1;
break;
}
/* PyDict_GetItemString wont raise an error. */
/* PyDict_GetItemString won't raise an error. */
continue;
}
@@ -7835,7 +7835,7 @@ StructRNA *pyrna_struct_as_srna(PyObject *self, const bool parent, const char *e
BPy_StructRNA *py_srna = NULL;
StructRNA *srna;
/* Unfortunately PyObject_GetAttrString wont look up this types tp_dict first :/ */
/* Unfortunately PyObject_GetAttrString won't look up this types tp_dict first :/ */
if (PyType_Check(self)) {
py_srna = (BPy_StructRNA *)PyDict_GetItem(((PyTypeObject *)self)->tp_dict,
bpy_intern_str_bl_rna);
@@ -8029,7 +8029,7 @@ static int pyrna_deferred_register_class_from_type_hints(StructRNA *srna, PyType
}
}
else {
/* Should never happen, an error wont have been raised, so raise one. */
/* Should never happen, an error won't have been raised, so raise one. */
PyErr_Format(PyExc_TypeError,
"typing.get_type_hints returned: %.200s, expected dict\n",
Py_TYPE(annotations_dict)->tp_name);
@@ -8437,7 +8437,7 @@ static int bpy_class_call(bContext *C, PointerRNA *ptr, FunctionRNA *func, Param
else if (py_srna == NULL) {
py_class_instance = NULL;
}
else if (py_srna == Py_None) { /* Probably wont ever happen, but possible. */
else if (py_srna == Py_None) { /* Probably won't ever happen, but possible. */
Py_DECREF(py_srna);
py_class_instance = NULL;
}
@@ -8667,7 +8667,7 @@ static int bpy_class_call(bContext *C, PointerRNA *ptr, FunctionRNA *func, Param
if (err != 0) {
ReportList *reports;
/* Alert the user, else they wont know unless they see the console. */
/* Alert the user, else they won't know unless they see the console. */
if ((!is_staticmethod) && (!is_classmethod) && (ptr->data) &&
(RNA_struct_is_a(ptr->type, &RNA_Operator)) &&
(is_valid_wm == (CTX_wm_manager(C) != NULL))) {
@@ -8675,7 +8675,7 @@ static int bpy_class_call(bContext *C, PointerRNA *ptr, FunctionRNA *func, Param
reports = op->reports;
}
else {
/* Wont alert users, but they can view in 'info' space. */
/* Won't alert users, but they can view in 'info' space. */
reports = CTX_wm_reports(C);
}

View File

@@ -2300,7 +2300,7 @@ static int Vector_length_set(VectorObject *self, PyObject *value)
dot = dot_vn_vn(self->vec, self->vec, self->size);
if (!dot) {
/* cant sqrt zero */
/* can't sqrt zero */
return 0;
}