[mipp] 01/03: New 0003-fix-None-checking.patch

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Sat Sep 16 14:25:30 UTC 2017


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

a_valentino-guest pushed a commit to branch master
in repository mipp.

commit a05460c83129f27f6e2640023fc54e70fc2fafd0
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Sat Sep 16 14:17:02 2017 +0000

    New 0003-fix-None-checking.patch
---
 debian/changelog                            |  8 ++++++++
 debian/patches/0003-fix-None-checking.patch | 21 +++++++++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 30 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 95d0e8c..f31e6ee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mipp (1.0.0-2) UNRELEASED; urgency=medium
+
+  * debian/patches
+    - new 0003-fix-None-checking.patch: use "is" instead of the "=="
+      operator to check if a parameter is None
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 16 Sep 2017 14:12:51 +0000
+
 mipp (1.0.0-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/patches/0003-fix-None-checking.patch b/debian/patches/0003-fix-None-checking.patch
new file mode 100644
index 0000000..db24014
--- /dev/null
+++ b/debian/patches/0003-fix-None-checking.patch
@@ -0,0 +1,21 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Sat, 16 Sep 2017 14:12:20 +0000
+Subject: fix None checking
+
+---
+ mipp/xrit/loader.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mipp/xrit/loader.py b/mipp/xrit/loader.py
+index 08a11ba..76c9a78 100644
+--- a/mipp/xrit/loader.py
++++ b/mipp/xrit/loader.py
+@@ -121,7 +121,7 @@ class ImageLoader(object):
+     def __call__(self, area_extent=None):
+         """Slice according to (ll_x, ll_y, ur_x, ur_y) or read full disc.
+         """
+-        if area_extent == None:
++        if area_extent is None:
+             # full disc
+             return self[:]
+             
diff --git a/debian/patches/series b/debian/patches/series
index 74f7dff..777fc86 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-fix-build-path-management.patch
 0002-Fix-configuration-loading.patch
+0003-fix-None-checking.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mipp.git



More information about the Pkg-grass-devel mailing list