[pytango] 33/37: Remove leavefunc code (not used)
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:16:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to annotated tag v9.2.0b
in repository pytango.
commit f4bd56bb01a2b6afd1e97cf372c9c6c8b208b711
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 70f229a..9420da2 100644
--- a/src/boost/python/__init__.py
+++ b/src/boost/python/__init__.py
@@ -197,12 +197,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