aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/libs/python/src/object/function.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/restricted/boost/libs/python/src/object/function.cpp
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 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.cpp8
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 e15eb3ffc0..7027b2d893 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);