[python-dtcwt] 02/06: Add patch fixing runtime failure with Python 3. File: Use-explicit-integer-division.patch
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Mar 8 13:25:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag debian/0.10.1+dfsg1-4
in repository python-dtcwt.
commit 496b11bc90991a029bd29df28720a3b32c5a6be3
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Tue Mar 8 10:02:50 2016 +0000
Add patch fixing runtime failure with Python 3.
File: Use-explicit-integer-division.patch
---
debian/patches/Use-explicit-integer-division.patch | 27 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 28 insertions(+)
diff --git a/debian/patches/Use-explicit-integer-division.patch b/debian/patches/Use-explicit-integer-division.patch
new file mode 100644
index 0000000..43d6864
--- /dev/null
+++ b/debian/patches/Use-explicit-integer-division.patch
@@ -0,0 +1,27 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Tue, 8 Mar 2016 10:01:07 +0000
+Subject: Use explicit integer division.
+
+---
+ dtcwt/numpy/lowlevel.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/dtcwt/numpy/lowlevel.py b/dtcwt/numpy/lowlevel.py
+index 5310d35..4f6d700 100644
+--- a/dtcwt/numpy/lowlevel.py
++++ b/dtcwt/numpy/lowlevel.py
+@@ -1,4 +1,4 @@
+-from __future__ import absolute_import
++from __future__ import absolute_import, division
+
+ __all__ = [ 'colfilter', 'colifilt', 'coldfilt', ]
+
+@@ -137,7 +137,7 @@ def coldfilt(X, ha, hb):
+ hbo = as_column_vector(hb[0:m:2])
+ hbe = as_column_vector(hb[1:m:2])
+ t = np.arange(5, r+2*m-2, 4)
+- r2 = r/2;
++ r2 = r//2;
+ Y = np.zeros((r2,c), dtype=X.dtype)
+
+ if np.sum(ha*hb) > 0:
diff --git a/debian/patches/series b/debian/patches/series
index 5197669..f6c82c0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
use-system-mathjax.patch
reproducible-build.patch
Fix-usage-of-unsafe-inplace-casting.patch
+Use-explicit-integer-division.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git
More information about the debian-science-commits
mailing list