[pytango] 21/21: Remove leavefunc code (not used)
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:16:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to annotated tag v9.2.0a
in repository pytango.
commit 60c4d802a066d65bd3da24f916ed5a88b57d14a7
Author: Jose Tiago Coutinho Macara <tiago.coutinho at esrf.fr>
Date: Fri Feb 26 13:09:09 2016 +0100
Remove leavefunc code (not used)
---
src/boost/cpp/base_types.cpp | 8 --------
src/boost/python/__init__.py | 9 ---------
2 files changed, 17 deletions(-)
diff --git a/src/boost/cpp/base_types.cpp b/src/boost/cpp/base_types.cpp
index 3ad5688..5d66115 100644
--- a/src/boost/cpp/base_types.cpp
+++ b/src/boost/cpp/base_types.cpp
@@ -234,12 +234,6 @@ int raise_asynch_exception(long thread_id, boost::python::object exp_klass)
return PyThreadState_SetAsyncExc(thread_id, exp_klass.ptr());
}
-void leave()
-{
- AutoPythonAllowThreads guard;
- Tango::leavefunc();
-}
-
void export_base_types()
{
enum_<PyTango::ExtractAs>("ExtractAs")
@@ -434,6 +428,4 @@ void export_base_types()
def("raise_asynch_exception", &raise_asynch_exception);
def("_get_tango_lib_release", &Tango::_convert_tango_lib_release);
-
- def("_leavefunc", &leave);
}
diff --git a/src/boost/python/__init__.py b/src/boost/python/__init__.py
index 4cfde9c..ae92f98 100644
--- a/src/boost/python/__init__.py
+++ b/src/boost/python/__init__.py
@@ -196,12 +196,3 @@ from .pytango_init import init as __init
__init()
-def __leave():
- try:
- _PyTango._leavefunc()
- except:
- pass
-
-#import atexit
-#atexit.register(__leave)
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list