style cleanup: spelling.

also remove large, duplicate comments from sunsky.h
This commit is contained in:
2012-03-09 00:41:09 +00:00
parent 27d43f3fd3
commit 4f7bdc59d3
111 changed files with 189 additions and 250 deletions

View File

@@ -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);