Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nh3 for openSUSE:Factory 
checked in at 2024-05-09 12:07:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nh3 (Old)
 and      /work/SRC/openSUSE:Factory/.python-nh3.new.1880 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nh3"

Thu May  9 12:07:35 2024 rev:4 rq:1172587 version:0.2.17

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nh3/python-nh3.changes    2024-01-03 
12:27:06.132110855 +0100
+++ /work/SRC/openSUSE:Factory/.python-nh3.new.1880/python-nh3.changes  
2024-05-09 12:07:47.897711354 +0200
@@ -1,0 +2,8 @@
+Tue May  7 21:07:45 UTC 2024 - Dirk Müller <dmuel...@suse.com>
+
+- update to 0.2.17:
+  * Fix type for ALLOWED_ATTRIBUTES
+  * Improve documentation
+  * Bump ammonia from 3.3.0 to 4.0.0
+
+-------------------------------------------------------------------

Old:
----
  nh3-0.2.15.tar.gz

New:
----
  nh3-0.2.17.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-nh3.spec ++++++
--- /var/tmp/diff_new_pack.5tvN0p/_old  2024-05-09 12:07:49.073754096 +0200
+++ /var/tmp/diff_new_pack.5tvN0p/_new  2024-05-09 12:07:49.077754241 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nh3
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-nh3
-Version:        0.2.15
+Version:        0.2.17
 Release:        0
 Summary:        Ammonia HTML sanitizer Python binding
 License:        MIT

++++++ _service ++++++
--- /var/tmp/diff_new_pack.5tvN0p/_old  2024-05-09 12:07:49.113755550 +0200
+++ /var/tmp/diff_new_pack.5tvN0p/_new  2024-05-09 12:07:49.117755695 +0200
@@ -1,7 +1,7 @@
 <services>
   <service name="download_files" mode="manual"/>
   <service name="cargo_vendor" mode="manual">
-    <param name="srcdir">nh3-0.2.15</param>
+    <param name="srcdir">nh3-0.2.17</param>
     <param name="compression">zst</param>
   </service>
   <service name="cargo_audit" mode="manual">

++++++ nh3-0.2.15.tar.gz -> nh3-0.2.17.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nh3-0.2.15/.github/workflows/CI.yml 
new/nh3-0.2.17/.github/workflows/CI.yml
--- old/nh3-0.2.15/.github/workflows/CI.yml     2023-12-07 16:14:34.000000000 
+0100
+++ new/nh3-0.2.17/.github/workflows/CI.yml     2024-03-26 13:06:52.000000000 
+0100
@@ -168,9 +168,11 @@
         image: alpine:latest
         options: -v ${{ github.workspace }}:/io -w /io
         run: |
-          apk add py3-pip
-          pip3 install -U pip pytest
-          pip3 install nh3 --no-index --find-links /io/dist/ --force-reinstall
+          apk add py3-virtualenv
+          python3 -m virtualenv .venv
+          source .venv/bin/activate
+          pip install -U pip pytest
+          pip install nh3 --no-index --find-links /io/dist/ --force-reinstall
           cd tests && python3 -m pytest
     - name: Upload wheels
       uses: actions/upload-artifact@v3
@@ -206,10 +208,12 @@
         distro: alpine_latest
         githubToken: ${{ github.token }}
         install: |
-          apk add py3-pip
-          pip3 install -U pip pytest
+          apk add py3-virtualenv
         run: |
-          pip3 install nh3 --no-index --find-links dist/ --force-reinstall
+          python3 -m virtualenv .venv
+          source .venv/bin/activate
+          pip install pytest
+          pip install nh3 --no-index --find-links dist/ --force-reinstall
           cd tests && python3 -m pytest
     - name: Upload wheels
       uses: actions/upload-artifact@v3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nh3-0.2.15/Cargo.lock new/nh3-0.2.17/Cargo.lock
--- old/nh3-0.2.15/Cargo.lock   2023-12-07 16:14:34.000000000 +0100
+++ new/nh3-0.2.17/Cargo.lock   2024-03-26 13:06:52.000000000 +0100
@@ -4,9 +4,9 @@
 
 [[package]]
 name = "ammonia"
-version = "3.3.0"
+version = "4.0.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "64e6d1c7838db705c9b756557ee27c384ce695a1c51a6fe528784cb1c6840170"
+checksum = "1ab99eae5ee58501ab236beb6f20f6ca39be615267b014899c89b2f0bc18a459"
 dependencies = [
  "html5ever",
  "maplit",
@@ -17,9 +17,9 @@
 
 [[package]]
 name = "autocfg"
-version = "1.1.0"
+version = "1.2.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
+checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80"
 
 [[package]]
 name = "bitflags"
@@ -54,9 +54,9 @@
 
 [[package]]
 name = "getrandom"
-version = "0.2.11"
+version = "0.2.12"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f"
+checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5"
 dependencies = [
  "cfg-if",
  "libc",
@@ -71,16 +71,16 @@
 
 [[package]]
 name = "html5ever"
-version = "0.26.0"
+version = "0.27.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "bea68cab48b8459f17cf1c944c67ddc572d272d9f2b274140f223ecb1da4a3b7"
+checksum = "c13771afe0e6e846f1e67d038d4cb29998a6779f93c809212e4e9c32efd244d4"
 dependencies = [
  "log",
  "mac",
  "markup5ever",
  "proc-macro2",
  "quote",
- "syn 1.0.109",
+ "syn",
 ]
 
 [[package]]
@@ -95,15 +95,15 @@
 
 [[package]]
 name = "indoc"
-version = "2.0.4"
+version = "2.0.5"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "1e186cfbae8084e513daff4240b4797e342f988cecda4fb6c939150f96315fd8"
+checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
 
 [[package]]
 name = "libc"
-version = "0.2.150"
+version = "0.2.153"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c"
+checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
 
 [[package]]
 name = "lock_api"
@@ -117,9 +117,9 @@
 
 [[package]]
 name = "log"
-version = "0.4.20"
+version = "0.4.21"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
+checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
 
 [[package]]
 name = "mac"
@@ -135,9 +135,9 @@
 
 [[package]]
 name = "markup5ever"
-version = "0.11.0"
+version = "0.12.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016"
+checksum = "c7940b09815a02810a42b9e1bc41c069880a87de68e9b1dcbe754a3ba3b47c20"
 dependencies = [
  "log",
  "phf",
@@ -158,13 +158,13 @@
 
 [[package]]
 name = "new_debug_unreachable"
-version = "1.0.4"
+version = "1.0.6"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54"
+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
 
 [[package]]
 name = "nh3"
-version = "0.2.15"
+version = "0.2.17"
 dependencies = [
  "ammonia",
  "pyo3",
@@ -207,21 +207,21 @@
 
 [[package]]
 name = "phf"
-version = "0.10.1"
+version = "0.11.2"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259"
+checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"
 dependencies = [
- "phf_shared",
+ "phf_shared 0.11.2",
 ]
 
 [[package]]
 name = "phf_codegen"
-version = "0.10.0"
+version = "0.11.2"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd"
+checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a"
 dependencies = [
- "phf_generator",
- "phf_shared",
+ "phf_generator 0.11.2",
+ "phf_shared 0.11.2",
 ]
 
 [[package]]
@@ -230,7 +230,17 @@
 source = "registry+https://github.com/rust-lang/crates.io-index";
 checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6"
 dependencies = [
- "phf_shared",
+ "phf_shared 0.10.0",
+ "rand",
+]
+
+[[package]]
+name = "phf_generator"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"
+dependencies = [
+ "phf_shared 0.11.2",
  "rand",
 ]
 
@@ -244,6 +254,21 @@
 ]
 
 [[package]]
+name = "phf_shared"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"
+dependencies = [
+ "siphasher",
+]
+
+[[package]]
+name = "portable-atomic"
+version = "1.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
+
+[[package]]
 name = "ppv-lite86"
 version = "0.2.17"
 source = "registry+https://github.com/rust-lang/crates.io-index";
@@ -257,24 +282,25 @@
 
 [[package]]
 name = "proc-macro2"
-version = "1.0.70"
+version = "1.0.79"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b"
+checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e"
 dependencies = [
  "unicode-ident",
 ]
 
 [[package]]
 name = "pyo3"
-version = "0.20.0"
+version = "0.21.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "04e8453b658fe480c3e70c8ed4e3d3ec33eb74988bd186561b0cc66b85c3bc4b"
+checksum = "a02a88a17e74cadbc8ce77855e1d6c8ad0ab82901a4a9b5046bd01c1c0bd95cd"
 dependencies = [
  "cfg-if",
  "indoc",
  "libc",
  "memoffset",
  "parking_lot",
+ "portable-atomic",
  "pyo3-build-config",
  "pyo3-ffi",
  "pyo3-macros",
@@ -283,9 +309,9 @@
 
 [[package]]
 name = "pyo3-build-config"
-version = "0.20.0"
+version = "0.21.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "a96fe70b176a89cff78f2fa7b3c930081e163d5379b4dcdf993e3ae29ca662e5"
+checksum = "a5eb0b6ecba38961f6f4bd6cd5906dfab3cd426ff37b2eed5771006aa31656f1"
 dependencies = [
  "once_cell",
  "target-lexicon",
@@ -293,9 +319,9 @@
 
 [[package]]
 name = "pyo3-ffi"
-version = "0.20.0"
+version = "0.21.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "214929900fd25e6604661ed9cf349727c8920d47deff196c4e28165a6ef2a96b"
+checksum = "ba8a6e48a29b5d22e4fdaf132d8ba8d3203ee9f06362d48f244346902a594ec3"
 dependencies = [
  "libc",
  "pyo3-build-config",
@@ -303,33 +329,34 @@
 
 [[package]]
 name = "pyo3-macros"
-version = "0.20.0"
+version = "0.21.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "dac53072f717aa1bfa4db832b39de8c875b7c7af4f4a6fe93cdbf9264cf8383b"
+checksum = "4e80493c5965f94a747d0782a607b2328a4eea5391327b152b00e2f3b001cede"
 dependencies = [
  "proc-macro2",
  "pyo3-macros-backend",
  "quote",
- "syn 2.0.39",
+ "syn",
 ]
 
 [[package]]
 name = "pyo3-macros-backend"
-version = "0.20.0"
+version = "0.21.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "7774b5a8282bd4f25f803b1f0d945120be959a36c72e08e7cd031c792fdfd424"
+checksum = "fcd7d86f42004025200e12a6a8119bd878329e6fddef8178eaafa4e4b5906c5b"
 dependencies = [
  "heck",
  "proc-macro2",
+ "pyo3-build-config",
  "quote",
- "syn 2.0.39",
+ "syn",
 ]
 
 [[package]]
 name = "quote"
-version = "1.0.33"
+version = "1.0.35"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
+checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
 dependencies = [
  "proc-macro2",
 ]
@@ -381,22 +408,22 @@
 
 [[package]]
 name = "serde"
-version = "1.0.193"
+version = "1.0.197"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89"
+checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
 dependencies = [
  "serde_derive",
 ]
 
 [[package]]
 name = "serde_derive"
-version = "1.0.193"
+version = "1.0.197"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3"
+checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
 dependencies = [
  "proc-macro2",
  "quote",
- "syn 2.0.39",
+ "syn",
 ]
 
 [[package]]
@@ -407,9 +434,9 @@
 
 [[package]]
 name = "smallvec"
-version = "1.11.2"
+version = "1.13.2"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970"
+checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
 
 [[package]]
 name = "string_cache"
@@ -420,7 +447,7 @@
  "new_debug_unreachable",
  "once_cell",
  "parking_lot",
- "phf_shared",
+ "phf_shared 0.10.0",
  "precomputed-hash",
  "serde",
 ]
@@ -431,28 +458,17 @@
 source = "registry+https://github.com/rust-lang/crates.io-index";
 checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988"
 dependencies = [
- "phf_generator",
- "phf_shared",
+ "phf_generator 0.10.0",
+ "phf_shared 0.10.0",
  "proc-macro2",
  "quote",
 ]
 
 [[package]]
 name = "syn"
-version = "1.0.109"
-source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
-dependencies = [
- "proc-macro2",
- "quote",
- "unicode-ident",
-]
-
-[[package]]
-name = "syn"
-version = "2.0.39"
+version = "2.0.55"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a"
+checksum = "002a1b3dbf967edfafc32655d0f377ab0bb7b994aa1d32c8cc7e9b8bf3ebb8f0"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -461,9 +477,9 @@
 
 [[package]]
 name = "target-lexicon"
-version = "0.12.12"
+version = "0.12.14"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a"
+checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f"
 
 [[package]]
 name = "tendril"
@@ -493,9 +509,9 @@
 
 [[package]]
 name = "unicode-bidi"
-version = "0.3.14"
+version = "0.3.15"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416"
+checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"
 
 [[package]]
 name = "unicode-ident"
@@ -505,9 +521,9 @@
 
 [[package]]
 name = "unicode-normalization"
-version = "0.1.22"
+version = "0.1.23"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
+checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5"
 dependencies = [
  "tinyvec",
 ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nh3-0.2.15/Cargo.toml new/nh3-0.2.17/Cargo.toml
--- old/nh3-0.2.15/Cargo.toml   1970-01-01 01:00:00.000000000 +0100
+++ new/nh3-0.2.17/Cargo.toml   1970-01-01 01:00:00.000000000 +0100
@@ -1,8 +1,8 @@
 [package]
 name = "nh3"
-version = "0.2.15"
+version = "0.2.17"
 authors = ["messense <messe...@icloud.com>"]
-edition = "2018"
+edition = "2021"
 description = "Python bindings to the ammonia HTML sanitization library."
 license = "MIT"
 repository = "https://github.com/messense/nh3";
@@ -14,5 +14,5 @@
 crate-type = ["cdylib"]
 
 [dependencies]
-ammonia = "3.3.0"
-pyo3 = { version = "0.20.0", features = ["abi3-py37", "extension-module"] }
+ammonia = "4.0.0"
+pyo3 = { version = "0.21.0", features = ["abi3-py37", "gil-refs"] }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nh3-0.2.15/PKG-INFO new/nh3-0.2.17/PKG-INFO
--- old/nh3-0.2.15/PKG-INFO     1970-01-01 01:00:00.000000000 +0100
+++ new/nh3-0.2.17/PKG-INFO     1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 2.1
+Metadata-Version: 2.3
 Name: nh3
-Version: 0.2.15
+Version: 0.2.17
 Summary: Python bindings to the ammonia HTML sanitization library.
 Author: messense <messe...@icloud.com>
 Author-email: messense <messe...@icloud.com>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nh3-0.2.15/docs/conf.py new/nh3-0.2.17/docs/conf.py
--- old/nh3-0.2.15/docs/conf.py 2023-12-07 16:14:34.000000000 +0100
+++ new/nh3-0.2.17/docs/conf.py 2024-03-26 13:06:52.000000000 +0100
@@ -52,6 +52,10 @@
 # a list of builtin themes.
 #
 html_theme = 'shibuya'
+html_theme_options = {
+    'page_layout': 'compact',
+    'github_url': 'https://github.com/messense/nh3',
+}
 
 pygments_style = "xcode"
 pygments_dark_style = "monokai"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nh3-0.2.15/nh3.pyi new/nh3-0.2.17/nh3.pyi
--- old/nh3-0.2.15/nh3.pyi      2023-12-07 16:14:34.000000000 +0100
+++ new/nh3-0.2.17/nh3.pyi      2024-03-26 13:06:52.000000000 +0100
@@ -1,7 +1,7 @@
 from typing import Callable, Dict, Optional, Set
 
 ALLOWED_TAGS: Set[str]
-ALLOWED_ATTRIBUTES: Set[str]
+ALLOWED_ATTRIBUTES: Dict[str, Set[str]]
 
 def clean(
     html: str,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nh3-0.2.15/pyproject.toml 
new/nh3-0.2.17/pyproject.toml
--- old/nh3-0.2.15/pyproject.toml       2023-12-07 16:14:34.000000000 +0100
+++ new/nh3-0.2.17/pyproject.toml       2024-03-26 13:06:52.000000000 +0100
@@ -1,3 +1,6 @@
 [build-system]
 requires = ["maturin>=1.0,<2.0"]
 build-backend = "maturin"
+
+[tool.maturin]
+features = ["pyo3/extension-module"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nh3-0.2.15/src/lib.rs new/nh3-0.2.17/src/lib.rs
--- old/nh3-0.2.15/src/lib.rs   2023-12-07 16:14:34.000000000 +0100
+++ new/nh3-0.2.17/src/lib.rs   2024-03-26 13:06:52.000000000 +0100
@@ -67,6 +67,7 @@
     set_tag_attribute_values = None,
     url_schemes = None,
 ))]
+#[allow(clippy::too_many_arguments)]
 fn clean(
     py: Python,
     html: &str,
@@ -124,14 +125,14 @@
             if let Some(callback) = attribute_filter {
                 cleaner.attribute_filter(move |element, attribute, value| {
                     Python::with_gil(|py| {
-                        let res = callback.call(
+                        let res = callback.call_bound(
                             py,
-                            PyTuple::new(
+                            PyTuple::new_bound(
                                 py,
                                 [
-                                    PyString::new(py, element),
-                                    PyString::new(py, attribute),
-                                    PyString::new(py, value),
+                                    PyString::new_bound(py, element),
+                                    PyString::new_bound(py, attribute),
+                                    PyString::new_bound(py, value),
                                 ],
                             ),
                             None,
@@ -153,14 +154,14 @@
                             }
                             Err(err) => err,
                         };
-                        err.write_unraisable(
+                        err.write_unraisable_bound(
                             py,
-                            Some(PyTuple::new(
+                            Some(&PyTuple::new_bound(
                                 py,
                                 [
-                                    PyString::new(py, element),
-                                    PyString::new(py, attribute),
-                                    PyString::new(py, value),
+                                    PyString::new_bound(py, element),
+                                    PyString::new_bound(py, attribute),
+                                    PyString::new_bound(py, value),
                                 ],
                             )),
                         );
@@ -230,7 +231,7 @@
 
 /// Python bindings to the ammonia HTML sanitization library ( 
https://github.com/rust-ammonia/ammonia ).
 #[pymodule]
-fn nh3(_py: Python, m: &PyModule) -> PyResult<()> {
+fn nh3(_py: Python, m: &Bound<PyModule>) -> PyResult<()> {
     m.add("__version__", env!("CARGO_PKG_VERSION"))?;
     m.add_function(wrap_pyfunction!(clean, m)?)?;
     m.add_function(wrap_pyfunction!(clean_text, m)?)?;

++++++ vendor.tar.zst ++++++
Binary files /var/tmp/diff_new_pack.5tvN0p/_old and 
/var/tmp/diff_new_pack.5tvN0p/_new differ

Reply via email to