diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/restricted/boost/libs | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/restricted/boost/libs')
-rw-r--r-- | contrib/restricted/boost/libs/python/src/converter/builtin_converters.cpp | 12 | ||||
-rw-r--r-- | contrib/restricted/boost/libs/python/src/object/function.cpp | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/contrib/restricted/boost/libs/python/src/converter/builtin_converters.cpp b/contrib/restricted/boost/libs/python/src/converter/builtin_converters.cpp index ee2d5b4794..f1b6e072fe 100644 --- a/contrib/restricted/boost/libs/python/src/converter/builtin_converters.cpp +++ b/contrib/restricted/boost/libs/python/src/converter/builtin_converters.cpp @@ -45,16 +45,16 @@ namespace { return PyString_Check(obj) ? PyString_AsString(obj) : 0; } -#elif PY_VERSION_HEX < 0x03070000 +#elif PY_VERSION_HEX < 0x03070000 void* convert_to_cstring(PyObject* obj) { return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0; } -#else - void* convert_to_cstring(PyObject* obj) - { - return PyUnicode_Check(obj) ? const_cast<void*>(reinterpret_cast<const void*>(_PyUnicode_AsString(obj))) : 0; - } +#else + void* convert_to_cstring(PyObject* obj) + { + return PyUnicode_Check(obj) ? const_cast<void*>(reinterpret_cast<const void*>(_PyUnicode_AsString(obj))) : 0; + } #endif // Given a target type and a SlotPolicy describing how to perform a 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); |