diff options
Diffstat (limited to 'source/gameengine/Ketsji/KX_PythonInit.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 7c47fc59ac5..cbf08a674ef 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -1736,11 +1736,11 @@ static void backupPySysObjects(void) PyObject *sys_mods= PySys_GetObject("modules"); /* should never fail */ /* paths */ - Py_XDECREF(gp_OrigPythonSysPath); /* just incase its set */ + Py_XDECREF(gp_OrigPythonSysPath); /* just in case its set */ gp_OrigPythonSysPath = PyList_GetSlice(sys_path, 0, INT_MAX); /* copy the list */ /* modules */ - Py_XDECREF(gp_OrigPythonSysModules); /* just incase its set */ + Py_XDECREF(gp_OrigPythonSysModules); /* just in case its set */ gp_OrigPythonSysModules = PyDict_Copy(sys_mods); /* copy the list */ } @@ -2093,7 +2093,7 @@ static PyObject* gPyEventToString(PyObject*, PyObject* value) } } - PyErr_Clear(); // incase there was an error clearing + PyErr_Clear(); // in case there was an error clearing Py_DECREF(mod); if (!ret) PyErr_SetString(PyExc_ValueError, "GameKeys.EventToString(int): expected a valid int keyboard event"); else Py_INCREF(ret); |