From 71d0f6f8965850e3f8298d14e380b22defbef98a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 19 Jul 2020 17:12:48 +1000 Subject: Cleanup: spelling --- source/blender/python/intern/bpy_interface.c | 6 +++--- source/blender/python/intern/bpy_rna.c | 4 ++-- source/blender/python/intern/bpy_traceback.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'source/blender/python') diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index be5a92309f2..ed5e505176c 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -268,11 +268,11 @@ void BPY_python_start(int argc, const char **argv) /* allow to use our own included python */ PyC_SetHomePath(py_path_bundle); - /* without this the sys.stdout may be set to 'ascii' + /* Without this the `sys.stdout` may be set to 'ascii' * (it is on my system at least), where printing unicode values will raise - * an error, this is highly annoying, another stumbling block for devs, + * an error, this is highly annoying, another stumbling block for developers, * so use a more relaxed error handler and enforce utf-8 since the rest of - * blender is utf-8 too - campbell */ + * Blender is utf-8 too - campbell */ Py_SetStandardStreamEncoding("utf-8", "surrogateescape"); /* Suppress error messages when calculating the module search path. diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index ebbbc8f3140..893832b61b6 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -7660,8 +7660,8 @@ void BPY_update_rna_module(void) } #if 0 -/* This is a way we can access docstrings for RNA types - * without having the datatypes in blender */ +/* This is a way we can access doc-strings for RNA types + * without having the data-types in Blender. */ PyObject *BPY_rna_doc(void) { PointerRNA ptr; diff --git a/source/blender/python/intern/bpy_traceback.c b/source/blender/python/intern/bpy_traceback.c index dd7e6b03e8b..e2c894e90f8 100644 --- a/source/blender/python/intern/bpy_traceback.c +++ b/source/blender/python/intern/bpy_traceback.c @@ -140,8 +140,8 @@ void python_script_error_jump(const char *filepath, int *lineno, int *offset) PyErr_Fetch(&exception, &value, (PyObject **)&tb); if (exception && PyErr_GivenExceptionMatches(exception, PyExc_SyntaxError)) { - /* no traceback available when SyntaxError. - * python has no api's to this. reference parse_syntax_error() from pythonrun.c */ + /* no trace-back available when `SyntaxError`. + * python has no API's to this. reference #parse_syntax_error() from pythonrun.c */ PyErr_NormalizeException(&exception, &value, (PyObject **)&tb); if (value) { /* should always be true */ -- cgit v1.2.3