2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

remove (again!) extra diagnostic info

[SVN r19281]
This commit is contained in:
Dave Abrahams
2003-07-23 14:14:00 +00:00
parent 96a7bce78e
commit 2b52210291

View File

@@ -24,7 +24,9 @@
#include <algorithm>
#include <cstring>
#include <stdio.h>
#if BOOST_PYTHON_DEBUG_ERROR_MESSAGES
# include <cstdio>
#endif
namespace boost { namespace python { namespace objects {
@@ -224,7 +226,9 @@ void function::argument_error(PyObject* args, PyObject* keywords) const
message += str("\n ").join(signatures);
printf("\n--------\n%s\n--------\n", extract<const char*>(message)());
#if BOOST_PYTHON_DEBUG_ERROR_MESSAGES
std::printf("\n--------\n%s\n--------\n", extract<const char*>(message)());
#endif
PyErr_SetObject(exception.get(), message.ptr());
throw_error_already_set();
}