diff options
Diffstat (limited to 'py/modules/IcePy/Util.cpp')
-rw-r--r-- | py/modules/IcePy/Util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/modules/IcePy/Util.cpp b/py/modules/IcePy/Util.cpp index d521b6e96d2..a676c10f5d4 100644 --- a/py/modules/IcePy/Util.cpp +++ b/py/modules/IcePy/Util.cpp @@ -790,6 +790,7 @@ extern "C" PyObject* IcePy_identityToString(PyObject* /*self*/, PyObject* args) { + PyErr_Warn(PyExc_DeprecationWarning, STRCAST("Ice.identityToString is deprecated, use Communicator::identityToString instead.")); PyObject* identityType = IcePy::lookupType("Ice.Identity"); PyObject* p; if(!PyArg_ParseTuple(args, STRCAST("O!"), identityType, &p)) @@ -820,6 +821,7 @@ extern "C" PyObject* IcePy_stringToIdentity(PyObject* /*self*/, PyObject* args) { + PyErr_Warn(PyExc_DeprecationWarning, STRCAST("Ice.stringToIdentity is deprecated, use Communicator::stringToIdentity instead.")); char* str; if(!PyArg_ParseTuple(args, STRCAST("s"), &str)) { |