[Git][debian-gis-team/rasterio][master] Add patch to fix SyntaxWarning with Python 3.8.

Bas Couwenberg gitlab at salsa.debian.org
Wed Jun 3 15:33:07 BST 2020



Bas Couwenberg pushed to branch master at Debian GIS Project / rasterio


Commits:
e345edf8 by Bas Couwenberg at 2020-06-03T16:32:58+02:00
Add patch to fix SyntaxWarning with Python 3.8.

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/python3.8.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+rasterio (1.1.5-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Add patch to fix SyntaxWarning with Python 3.8.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Wed, 03 Jun 2020 16:28:46 +0200
+
 rasterio (1.1.5-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/python3.8.patch
=====================================
@@ -0,0 +1,17 @@
+Description: Fix SyntaxWarning with Python 3.8.
+ SyntaxWarning: "is" with a literal. Did you mean "=="?
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/mapbox/rasterio/pull/1874
+Applied-Upstream: https://github.com/mapbox/rasterio/commit/e855631fa71ef7741d112b26c967f66e3adba0da
+
+--- a/rasterio/plot.py
++++ b/rasterio/plot.py
+@@ -257,7 +257,7 @@ def show_hist(source, bins=10, masked=Tr
+     # so we need the overall min/max to constrain the plot
+     rng = np.nanmin(arr), np.nanmax(arr)
+ 
+-    if len(arr.shape) is 2:
++    if len(arr.shape) == 2:
+         arr = np.expand_dims(arr.flatten(), 0).T
+         colors = ['gold']
+     else:


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 0001-Rename-rio-to-rasterio-Closes-788463.patch
+python3.8.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/rasterio/-/commit/e345edf8987cc6b517f45162a6da69bba9e7522f

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/rasterio/-/commit/e345edf8987cc6b517f45162a6da69bba9e7522f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20200603/cde671a5/attachment-0001.html>


More information about the Pkg-grass-devel mailing list