[pytango] 360/483: Fix classic division in python3

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


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

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit 8e0f1df705b7ad23f4413a17fc24ce3c92b86fbb
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Tue Feb 25 13:16:26 2014 +0000

    Fix classic division in python3
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@25057 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 src/boost/python/pytango_init.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/boost/python/pytango_init.py b/src/boost/python/pytango_init.py
index 3dc2573..3512914 100644
--- a/src/boost/python/pytango_init.py
+++ b/src/boost/python/pytango_init.py
@@ -64,8 +64,8 @@ def init_constants():
         #UNAME = tuple(map(str, json.loads(constants.UNAME)))
 
     tg_rt_ver_nb = _get_tango_lib_release()
-    tg_rt_major_ver = tg_rt_ver_nb / 100
-    tg_rt_minor_ver = tg_rt_ver_nb / 10 % 10
+    tg_rt_major_ver = tg_rt_ver_nb // 100
+    tg_rt_minor_ver = tg_rt_ver_nb // 10 % 10
     tg_rt_patch_ver = tg_rt_ver_nb % 10
     tg_rt_ver = ".".join(map(str, (tg_rt_major_ver, tg_rt_minor_ver,
                                    tg_rt_patch_ver)))

-- 
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