File: Make-the-build-reproducible-assure-stable-order-use-a-tup.patch

package info (click to toggle)
python-charset-normalizer 3.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 712 kB
  • sloc: python: 5,434; makefile: 25; sh: 17
file content (23 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Mattia Rizzolo <mattia@debian.org>
Date: Thu, 19 Sep 2024 17:31:55 +0200
Subject: Make the build reproducible: assure stable order,
 use a tuple instead of a set

Signed-off-by: Mattia Rizzolo <mattia@debian.org>
---
 src/charset_normalizer/md.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/charset_normalizer/md.py b/src/charset_normalizer/md.py
index 12ce024..9f002be 100644
--- a/src/charset_normalizer/md.py
+++ b/src/charset_normalizer/md.py
@@ -341,7 +341,7 @@ class SuperWeirdWordPlugin(MessDetectorPlugin):
             self._buffer_accent_count = 0
             self._buffer_glyph_count = 0
         elif (
-            character not in {"<", ">", "-", "=", "~", "|", "_"}
+            character not in ("<", ">", "-", "=", "~", "|", "_")
             and character.isdigit() is False
             and is_symbol(character)
         ):