diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-05-12 13:50:05 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-05-12 13:50:05 +0000 |
commit | 892bc25c813ced27f04bd872423109f0bd868b6f (patch) | |
tree | cda7ba37c46f0ba676f62c60975c30ef40fd7fa5 /py/modules/IcePy/Util.cpp | |
parent | Fix bug 973 (diff) | |
download | ice-892bc25c813ced27f04bd872423109f0bd868b6f.tar.bz2 ice-892bc25c813ced27f04bd872423109f0bd868b6f.tar.xz ice-892bc25c813ced27f04bd872423109f0bd868b6f.zip |
Removed/fixed use of stringToIdentity. Fixed bug 973
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)) { |