Bug#752663: make the -gdb.py file compatible with python3

Matthias Klose doko at debian.org
Wed Jun 25 12:16:59 UTC 2014


Package: src:openturns
Version: 1.3-2
Tags: patch

please make the -gdb.py file compatible with python3. this version is supposed
to work with both python2 and python3.

-------------- next part --------------
--- debian/libOT-gdb.py~	2014-03-06 22:16:38.000000000 +0100
+++ debian/libOT-gdb.py	2014-06-25 14:14:05.052268954 +0200
@@ -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()


More information about the debian-science-maintainers mailing list