diff options
Diffstat (limited to 'python/modules/IcePy/ObjectAdapter.cpp')
-rw-r--r-- | python/modules/IcePy/ObjectAdapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/modules/IcePy/ObjectAdapter.cpp b/python/modules/IcePy/ObjectAdapter.cpp index 07877369274..9beb09d1f52 100644 --- a/python/modules/IcePy/ObjectAdapter.cpp +++ b/python/modules/IcePy/ObjectAdapter.cpp @@ -1878,7 +1878,7 @@ IcePy::unwrapObjectAdapter(PyObject* obj) #endif assert(wrapperType); assert(PyObject_IsInstance(obj, wrapperType)); - PyObjectHandle impl = PyObject_GetAttrString(obj, STRCAST("_impl")); + PyObjectHandle impl = getAttr(obj, "_impl", false); assert(impl.get()); return getObjectAdapter(impl.get()); } |