Fix typos in src/Base

This commit is contained in:
luz.paz
2019-07-19 15:18:54 -04:00
committed by wmayer
parent 3a1a6eb7d8
commit e9caeef557
3 changed files with 8 additions and 8 deletions

View File

@@ -53,9 +53,9 @@ using namespace Base;
PyException::PyException(const Py::Object &obj) {
_sErrMsg = obj.as_string();
// WARNING: we are assumming that python type object will never be
// destroied, so we don't keep reference here to save book-keeping in
// our copy constructor and desctructor
// WARNING: we are assuming that python type object will never be
// destroyed, so we don't keep reference here to save book-keeping in
// our copy constructor and destructor
_exceptionType = (PyObject*)obj.ptr()->ob_type;
_errorType = obj.ptr()->ob_type->tp_name;
}
@@ -84,9 +84,9 @@ PyException::PyException(void)
_exceptionType = PP_last_exception_type;
if(PP_last_exception_type) {
// WARNING: we are assumming that python type object will never be
// destroied, so we don't keep reference here to save book-keeping in
// our copy constructor and desctructor
// WARNING: we are assuming that python type object will never be
// destroyed, so we don't keep reference here to save book-keeping in
// our copy constructor and destructor
Py_DECREF(PP_last_exception_type);
PP_last_exception_type = 0;