diff options
| author | orivej <[email protected]> | 2022-02-10 16:45:01 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:01 +0300 |
| commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
| tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/restricted/boost/libs/python/src/object/function.cpp | |
| parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/restricted/boost/libs/python/src/object/function.cpp')
| -rw-r--r-- | contrib/restricted/boost/libs/python/src/object/function.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/restricted/boost/libs/python/src/object/function.cpp b/contrib/restricted/boost/libs/python/src/object/function.cpp index 7027b2d8936..e15eb3ffc06 100644 --- a/contrib/restricted/boost/libs/python/src/object/function.cpp +++ b/contrib/restricted/boost/libs/python/src/object/function.cpp @@ -449,9 +449,9 @@ void function::add_to_namespace( if (dict == 0) throw_error_already_set(); - assert(!PyErr_Occurred()); + assert(!PyErr_Occurred()); handle<> existing(allow_null(::PyObject_GetItem(dict.get(), name.ptr()))); - PyErr_Clear(); + PyErr_Clear(); if (existing) { @@ -492,10 +492,10 @@ void function::add_to_namespace( if (new_func->name().is_none()) new_func->m_name = name; - assert(!PyErr_Occurred()); + assert(!PyErr_Occurred()); handle<> name_space_name( allow_null(::PyObject_GetAttrString(name_space.ptr(), const_cast<char*>("__name__")))); - PyErr_Clear(); + PyErr_Clear(); if (name_space_name) new_func->m_namespace = object(name_space_name); |
