diff options
author | Mark Spruiell <mes@zeroc.com> | 2007-09-24 16:48:44 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2007-09-24 16:48:44 -0700 |
commit | a368e10bfe43a027ed3c2ebe152978ff6126ce97 (patch) | |
tree | 583b9f0fa12bce0c8d4aa053d705f12f4ed7d840 /cpp/src/Slice/PythonUtil.cpp | |
parent | Squashed commit of the following: (diff) | |
download | ice-a368e10bfe43a027ed3c2ebe152978ff6126ce97.tar.bz2 ice-a368e10bfe43a027ed3c2ebe152978ff6126ce97.tar.xz ice-a368e10bfe43a027ed3c2ebe152978ff6126ce97.zip |
refactoring operation invocation & dispatch in Python
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r-- | cpp/src/Slice/PythonUtil.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index 1e730598a94..1a88d964376 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -644,12 +644,12 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) } _out << ", _ctx=None):"; _out.inc(); - _out << nl << "return _M_" << abs << "._op_" << (*oli)->name() << ".invoke(self, (" << inParams; + _out << nl << "return _M_" << abs << "._op_" << (*oli)->name() << ".invoke(self, ((" << inParams; if(!inParams.empty() && inParams.find(',') == string::npos) { _out << ", "; } - _out << "), _ctx)"; + _out << "), _ctx))"; _out.dec(); if(p->hasMetaData("ami") || (*oli)->hasMetaData("ami")) @@ -661,13 +661,13 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) } _out << ", _ctx=None):"; _out.inc(); - _out << nl << "return _M_" << abs << "._op_" << (*oli)->name() << ".invokeAsync(self, _cb, (" + _out << nl << "return _M_" << abs << "._op_" << (*oli)->name() << ".invokeAsync(self, (_cb, (" << inParams; if(!inParams.empty() && inParams.find(',') == string::npos) { _out << ", "; } - _out << "), _ctx)"; + _out << "), _ctx))"; _out.dec(); } } |