}
if (res == 0) {
PyErr_SetString(PyExc_AssertionError,
- "TypeError did not inlclude expected message.");
+ "TypeError did not include expected message.");
goto finally;
}
result = Py_NewRef(Py_None);
/* deallocate the spec (and all contents) */
- // (Explicitly ovewrite memory before freeing,
+ // (Explicitly overwrite memory before freeing,
// so bugs show themselves even without the debug allocator's help.)
memset(spec, 0xdd, sizeof(PyType_Spec));
PyMem_Del(spec);
return -1;
if (fd < 0) {
PyErr_SetString(PyExc_ValueError,
- "file is not a valid file descripter");
+ "file is not a valid file descriptor");
return -1;
}
*file_ptr = NULL;