diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-07-19 10:12:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-07-19 10:37:02 +0300 |
commit | 71d0f6f8965850e3f8298d14e380b22defbef98a (patch) | |
tree | 4d3dc4ee34d576b86abca588627e430d88253682 /source/blender/python | |
parent | b8601b64c7cba366f97535d53470c539632c43c6 (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 6 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 4 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_traceback.c | 4 |
3 files changed, 7 insertions, 7 deletions
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 */ |