[openturns] 02/04: Make libOT-gdb.py compatible with python3

Denis Barbier barbier-guest at moszumanska.debian.org
Sun Aug 17 23:14:16 UTC 2014


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

barbier-guest pushed a commit to branch debian
in repository openturns.

commit a598e74c871929a8ef908dc9e942a9a3cad823ec
Author: Denis Barbier <bouzim at gmail.com>
Date:   Wed Aug 13 10:30:36 2014 +0200

    Make libOT-gdb.py compatible with python3
    
    Closes: #752663
---
 debian/libOT-gdb.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/libOT-gdb.py b/debian/libOT-gdb.py
index 71ca794..b992e1e 100644
--- a/debian/libOT-gdb.py
+++ b/debian/libOT-gdb.py
@@ -1,6 +1,9 @@
 
 import gdb
 import re
+import sys
+if sys.version > '3':
+    long = int
 
 objfile = gdb.current_objfile() or gdb.objfiles()[0]
 int_ptr  = gdb.lookup_type('int').pointer()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/openturns.git



More information about the debian-science-commits mailing list