[pytango] 03/25: Remove leavefunc code (not used)

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:17:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to tag v8.1.9
in repository pytango.

commit 16d89740ca84eb56dae2a2ad5a1f4d617760ea2f
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 | 8 --------
 2 files changed, 16 deletions(-)

diff --git a/src/boost/cpp/base_types.cpp b/src/boost/cpp/base_types.cpp
index dcc9faa..e38aa28 100644
--- a/src/boost/cpp/base_types.cpp
+++ b/src/boost/cpp/base_types.cpp
@@ -223,12 +223,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")
@@ -416,6 +410,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 71a0342..01987fe 100644
--- a/src/boost/python/__init__.py
+++ b/src/boost/python/__init__.py
@@ -193,11 +193,3 @@ from .tango_numpy import NumpyType, numpy_type, numpy_spectrum, numpy_image
 
 from .pytango_init import init as __init
 __init()
-
-
-def __leave():
-    _PyTango._leavefunc()
-
-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