From 096e538c9efa3c07344232fa89fc07c4ae70a5da Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 30 Jan 2021 17:27:08 +0100 Subject: [PATCH] App: [skip ci] use better deprecation warning as used in PR 4335 --- src/App/ExtensionContainerPyImp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/ExtensionContainerPyImp.cpp b/src/App/ExtensionContainerPyImp.cpp index e09f4b3a56..a7f6705887 100644 --- a/src/App/ExtensionContainerPyImp.cpp +++ b/src/App/ExtensionContainerPyImp.cpp @@ -203,7 +203,8 @@ PyObject* ExtensionContainerPy::addExtension(PyObject *args) { return NULL; if (proxy) { - PyErr_SetString(PyExc_DeprecationWarning, "A proxy object as seconbd argument is not needed any more. Please adjust your code"); + PyErr_SetString(PyExc_DeprecationWarning, "Second argument is deprecated. It is ignored and will be removed in future versions. " + "The default Python feature proxy is used for extension method overrides."); PyErr_Print(); }