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

This is an object, not a function declaration. Really.

This commit is contained in:
Stefan Seefeld
2017-12-18 15:04:23 -05:00
parent b9d0d97499
commit d6d54ce483

View File

@@ -44,7 +44,7 @@ extern "C"
static PyObject* enum_repr(PyObject* self_)
{
PyObject *mod = PyObject_GetAttrString( self_, "__module__");
object auto_free(handle<>(mod));
object auto_free = object(handle<>(mod));
enum_object* self = downcast<enum_object>(self_);
if (!self->name)
{