[Git][debian-gis-team/owslib][master] Add patch to use yaml.safe_load instead of yaml.load. (closes: #1022033)

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Wed Oct 19 10:58:33 BST 2022



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


Commits:
1cff4901 by Bas Couwenberg at 2022-10-19T11:58:19+02:00
Add patch to use yaml.safe_load instead of yaml.load. (closes: #1022033)

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/series
- + debian/patches/yaml-safe_load.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+owslib (0.27.2-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Add patch to use yaml.safe_load instead of yaml.load.
+    (closes: #1022033)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Wed, 19 Oct 2022 11:46:19 +0200
+
 owslib (0.27.2-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+yaml-safe_load.patch


=====================================
debian/patches/yaml-safe_load.patch
=====================================
@@ -0,0 +1,16 @@
+Description: Use yaml.safe_load instead of yaml.load.
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug-Debian: https://bugs.debian.org/1022033
+Forwarded: https://github.com/geopython/OWSLib/pull/838
+
+--- a/owslib/ogcapi/__init__.py
++++ b/owslib/ogcapi/__init__.py
+@@ -99,7 +99,7 @@ class API:
+             if openapi_format == openapi_json_mimetype:
+                 content = response.json()
+             elif openapi_format == openapi_yaml_mimetype:
+-                content = yaml.load(response.text)
++                content = yaml.safe_load(response.text)
+             return content
+         else:
+             msg = 'Did not find service-desc link'



View it on GitLab: https://salsa.debian.org/debian-gis-team/owslib/-/commit/1cff4901ea003d39ac861485c65ac9a7b33cf66f

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/owslib/-/commit/1cff4901ea003d39ac861485c65ac9a7b33cf66f
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/20221019/37248702/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list