diff options
Diffstat (limited to 'py/modules/IcePy/Communicator.cpp')
-rw-r--r-- | py/modules/IcePy/Communicator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/modules/IcePy/Communicator.cpp b/py/modules/IcePy/Communicator.cpp index 36441bc82a9..47d048891c8 100644 --- a/py/modules/IcePy/Communicator.cpp +++ b/py/modules/IcePy/Communicator.cpp @@ -714,6 +714,8 @@ extern "C" static PyObject* communicatorSetDefaultContext(CommunicatorObject* self, PyObject* args) { + PyErr_Warn(PyExc_DeprecationWarning, STRCAST("setDefaultContext has been deprecated, use per-proxy contexts or implicit contexts (if applicable) instead.")); + PyObject* dict; if(!PyArg_ParseTuple(args, STRCAST("O!"), &PyDict_Type, &dict)) { @@ -747,6 +749,8 @@ extern "C" static PyObject* communicatorGetDefaultContext(CommunicatorObject* self) { + PyErr_Warn(PyExc_DeprecationWarning, STRCAST("getDefaultContext has been deprecated, use per-proxy contexts or implicit contexts (if applicable) instead.")); + Ice::Context ctx; try { |