diff options
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 e15eb3ffc06..7027b2d8936 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); |
